Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/libs/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -38,6 +40,11 @@ function isBetaEnabled(beta: Beta, betas: OnyxEntry<Beta[]>, 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);

Expand Down
Loading