Skip to content

Commit

Permalink
Don't complete onboarding if not an invited user
Browse files Browse the repository at this point in the history
  • Loading branch information
deetergp committed Nov 15, 2024
1 parent 992e5d4 commit 538b9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7349,7 +7349,7 @@ function cancelPayment(expenseReport: OnyxEntry<OnyxTypes.Report>, chatReport: O
function completePaymentOnboarding(paymentSelected: ValueOf<typeof CONST.PAYMENT_SELECTED>) {
const isInviteOnboardingComplete = introSelected?.isInviteOnboardingComplete ?? false;

if (isInviteOnboardingComplete || !introSelected?.choice) {
if (isInviteOnboardingComplete || !introSelected?.choice || !introSelected?.inviteType) {
return;
}

Expand Down

0 comments on commit 538b9ec

Please sign in to comment.