Skip to content

Commit f421fa7

Browse files
Add check for lastTravelSignupRequestTime and add to type
1 parent 8658d62 commit f421fa7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/BookTravelButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ function BookTravelButton({text, shouldRenderErrorMessageBelowButton = false, se
147147
navigateToAcceptTerms(CONST.TRAVEL.DEFAULT_DOMAIN);
148148
} else if (!isBetaEnabled(CONST.BETAS.IS_TRAVEL_VERIFIED)) {
149149
setVerificationModalVisibility(true);
150-
requestTravelAccess();
150+
if (!travelSettings?.lastTravelSignupRequestTime) {
151+
requestTravelAccess();
152+
}
151153
}
152154
// Determine the domain to associate with the workspace during provisioning in Spotnana.
153155
// - If all admins share the same private domain, the workspace is tied to it automatically.

src/types/onyx/TravelSettings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ type TravelSettings = {
88

99
/** Whether the user is setup for staging travelDot */
1010
testAccount?: boolean;
11+
12+
/** The last travel signup request time */
13+
lastTravelSignupRequestTime?: string;
1114
};
1215

1316
/** Model of workspace travel information to connect with Spotnana */

0 commit comments

Comments
 (0)