diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 12a4e8880929..b5830dc79fbc 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -8,6 +8,8 @@ import type {OnyxEntry} from 'react-native-onyx'; import type Environment from './Environment/getEnvironment/types'; +import getPlatform from './getPlatform'; + /** * Overrides are a test tool, so they never apply in production. * Android staging and TestFlight are compiled as production, so only the resolved environment tells a real production @@ -38,6 +40,11 @@ function isBetaEnabled(beta: Beta, betas: OnyxEntry, betaConfiguration: } } + // Release desktop web independently while the native navigation fixes roll out. + if ((beta === CONST.BETAS.INSIGHTS_PAGE || beta === CONST.BETAS.INSIGHTS_COMPARE) && getPlatform(true) === CONST.PLATFORM.WEB) { + return true; + } + const hasAllBetasEnabled = canUseAllBetas(betas); const isFeatureEnabled = !!betas?.includes(beta);