We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1350024 commit 940f7b3Copy full SHA for 940f7b3
1 file changed
src/components/BookTravelButton.tsx
@@ -55,7 +55,7 @@ function BookTravelButton({text, shouldRenderErrorMessageBelowButton = false, se
55
56
const policy = usePolicy(activePolicyID);
57
const [errorMessage, setErrorMessage] = useState<string | ReactElement>('');
58
- const [travelSettings] = useOnyx(ONYXKEYS.NVP_TRAVEL_SETTINGS, {canBeMissing: false});
+ const [travelSettings] = useOnyx(ONYXKEYS.NVP_TRAVEL_SETTINGS, {canBeMissing: true});
59
const [sessionEmail] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.email, canBeMissing: false});
60
const primaryContactMethod = primaryLogin ?? sessionEmail ?? '';
61
const {isBlockedFromSpotnanaTravel, isBetaEnabled} = usePermissions();
0 commit comments