diff --git a/client/src/index.js b/client/src/index.js index e08a7ea5f..84daa4195 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -21,22 +21,22 @@ require("dotenv").config(); // Dinero.defaultCurrency = "CAD"; // Dinero.globalLocale = "en-CA"; -Dinero.globalRoundingMode = "HALF_UP"; +Dinero.globalRoundingMode = "HALF_EVEN"; -//if (process.env.NODE_ENV !== "development") { -Sentry.init({ - dsn: - "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027", - integrations: [ - // new Integrations.BrowserTracing(), - // new Sentry.Integrations.Breadcrumbs({ console: true }), - ], - environment: process.env.NODE_ENV, - // We recommend adjusting this value in production, or using tracesSampler - // for finer control - // tracesSampleRate: 0.5, -}); -//} +if (process.env.NODE_ENV !== "development") { + Sentry.init({ + dsn: + "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027", + integrations: [ + // new Integrations.BrowserTracing(), + // new Sentry.Integrations.Breadcrumbs({ console: true }), + ], + environment: process.env.NODE_ENV, + // We recommend adjusting this value in production, or using tracesSampler + // for finer control + // tracesSampleRate: 0.5, + }); +} ReactDOM.render( diff --git a/server/job/job-totals.js b/server/job/job-totals.js index 6d07d7073..a05c0835c 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -4,7 +4,7 @@ const GraphQLClient = require("graphql-request").GraphQLClient; // Dinero.defaultCurrency = "USD"; // Dinero.globalLocale = "en-CA"; -Dinero.globalRoundingMode = "HALF_UP"; +Dinero.globalRoundingMode = "HALF_EVEN"; exports.totalsSsu = async function (req, res) { const BearerToken = req.headers.authorization;