Update is sentry enabled check (#1442)

This commit is contained in:
Abhinav Kumar 2023-11-18 14:59:33 +05:30 committed by GitHub
commit 068c9657ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ const cp = require('child_process');
module.exports.getIsSentryEnabled = () => {
const isAppENVDevelopment = getAppEnv() === ENV_DEVELOPMENT;
const isSentryDisabled = isDisableSentryFlagSet();
return !isAppENVDevelopment || !isSentryDisabled;
return !isAppENVDevelopment && !isSentryDisabled;
};
module.exports.getGitSha = () =>

View file

@ -51,5 +51,5 @@ export function isErrorUnnecessaryForSentry(error: any) {
export const getIsSentryEnabled = () => {
const isAppENVDevelopment = getAppEnv() === APP_ENV.DEVELOPMENT;
const isSentryDisabled = isDisableSentryFlagSet();
return !isAppENVDevelopment || !isSentryDisabled;
return !isAppENVDevelopment && !isSentryDisabled;
};