Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Nov 14, 2024
1 parent 518602c commit 668fd18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ function openReport(
const isInviteOnboardingComplete = introSelected?.isInviteOnboardingComplete ?? false;
const isOnboardingCompleted = onboarding?.hasCompletedGuidedSetupFlow ?? false;

// Add guided setup data only when nvp_introSelected is set and guided setup is not completed
// OldDot users will never have introSelected set, so they will not see guided setup
if (introSelected && !isOnboardingCompleted && !isInviteOnboardingComplete) {
const {choice, inviteType} = introSelected;
const isInviteIOUorInvoice = inviteType === CONST.ONBOARDING_INVITE_TYPES.IOU || inviteType === CONST.ONBOARDING_INVITE_TYPES.INVOICE;
Expand Down

0 comments on commit 668fd18

Please sign in to comment.