Skip to content

Commit

Permalink
Refactor completeOnboarding function to update onboarding status
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Sep 23, 2024
1 parent bbc0919 commit 00f6568
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,11 @@ function completeOnboarding(
key: ONYXKEYS.NVP_INTRO_SELECTED,
value: {choice: engagementChoice},
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.NVP_ONBOARDING,
value: {hasCompletedGuidedSetupFlow: true},
},
);

const successData: OnyxUpdate[] = [...tasksForSuccessData];
Expand Down Expand Up @@ -3637,6 +3642,11 @@ function completeOnboarding(
key: ONYXKEYS.NVP_INTRO_SELECTED,
value: {choice: null},
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.NVP_ONBOARDING,
value: {hasCompletedGuidedSetupFlow: null},
},
);

const guidedSetupData: GuidedSetupData = [
Expand Down

0 comments on commit 00f6568

Please sign in to comment.