Skip to content

Commit

Permalink
reorder the method agai
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsh-scottlogic committed Mar 19, 2024
1 parent 55e10e9 commit 3b00a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/MainComponent/MainComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ function MainComponent({
currentLevel
);

// set as new user so welcome modal shows
setIsNewUser(true);

if (
currentLevel === LEVEL_NAMES.SANDBOX ||
currentLevel === LEVEL_NAMES.LEVEL_1
Expand All @@ -344,9 +347,6 @@ function MainComponent({
// game state will be updated by the [currentLevel] useEffect
setCurrentLevel(LEVEL_NAMES.LEVEL_1);
}

// set as new user so welcome modal shows
setIsNewUser(true);
}

function openResetProgressOverlay() {
Expand Down

0 comments on commit 3b00a46

Please sign in to comment.