Skip to content

Commit 0073947

Browse files
Prevent booking if the company has decided to prevent it
1 parent cd736ab commit 0073947

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pages/workspace/travel/BookOrManageYourTrip.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ function GetStartedTravel({policyID}: GetStartedTravelProps) {
1919
const icons = useMemoizedLazyExpensifyIcons(['LuggageWithLines', 'NewWindow'] as const);
2020
const {isBetaEnabled} = usePermissions();
2121
const isTravelInvoicingEnabled = isBetaEnabled(CONST.BETAS.TRAVEL_INVOICING);
22+
const isPreventSpotnanaTravelEnabled = isBetaEnabled(CONST.BETAS.PREVENT_SPOTNANA_TRAVEL);
2223

2324
const handleManageTravel = () => {
25+
// TODO: Show the prevention modal when the beta is enabled
26+
if (isPreventSpotnanaTravelEnabled) {
27+
return;
28+
}
2429
openTravelDotLink(policyID);
2530
};
2631

0 commit comments

Comments
 (0)