diff --git a/src/libs/TripReservationUtils.ts b/src/libs/TripReservationUtils.ts index b57774799315..b7f754f9cac6 100644 --- a/src/libs/TripReservationUtils.ts +++ b/src/libs/TripReservationUtils.ts @@ -14,6 +14,7 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject'; import type IconAsset from '@src/types/utils/IconAsset'; import * as Link from './actions/Link'; import Navigation from './Navigation/Navigation'; +import * as PolicyUtils from './PolicyUtils'; let travelSettings: OnyxEntry; Onyx.connect({ @@ -78,7 +79,8 @@ function bookATrip(translate: LocaleContextProps['translate'], setCtaErrorMessag setCtaErrorMessage(translate('travel.phoneError')); return; } - if (isEmptyObject(travelSettings)) { + const policy = PolicyUtils.getPolicy(activePolicyID); + if (isEmptyObject(policy?.address)) { Navigation.navigate(ROUTES.WORKSPACE_PROFILE_ADDRESS.getRoute(activePolicyID ?? '-1', Navigation.getActiveRoute())); return; }