Skip to content

Commit

Permalink
Remove the chronosInCash beta
Browse files Browse the repository at this point in the history
  • Loading branch information
deetergp committed Jul 22, 2024
1 parent f3a8f73 commit 30b5185
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ const CONST = {
},
BETAS: {
ALL: 'all',
CHRONOS_IN_CASH: 'chronosInCash',
DEFAULT_ROOMS: 'defaultRooms',
VIOLATIONS: 'violations',
DUPE_DETECTION: 'dupeDetection',
Expand Down
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ function getUserToInviteOption({
isInSelectedOption ||
(!isValidEmail && !isValidPhoneNumber) ||
isInOptionToExclude ||
(isChronosEmail && !Permissions.canUseChronos(betas)) ||
isChronosEmail ||
excludeUnknownUsers
) {
return null;
Expand Down
5 changes: 0 additions & 5 deletions src/libs/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ function canUseAllBetas(betas: OnyxEntry<Beta[]>): boolean {
return !!betas?.includes(CONST.BETAS.ALL);
}

function canUseChronos(betas: OnyxEntry<Beta[]>): boolean {
return !!betas?.includes(CONST.BETAS.CHRONOS_IN_CASH) || canUseAllBetas(betas);
}

function canUseDefaultRooms(betas: OnyxEntry<Beta[]>): boolean {
return !!betas?.includes(CONST.BETAS.DEFAULT_ROOMS) || canUseAllBetas(betas);
}
Expand Down Expand Up @@ -64,7 +60,6 @@ function canUseLinkPreviews(): boolean {
}

export default {
canUseChronos,
canUseDefaultRooms,
canUseLinkPreviews,
canUseViolations,
Expand Down

0 comments on commit 30b5185

Please sign in to comment.