Update is sentry enabled check (#1442)
This commit is contained in:
commit
068c9657ed
|
@ -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 = () =>
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue