Skip to content

Commit

Permalink
properly check current setup step
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Sep 20, 2023
1 parent 146de8d commit 1c196f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/hooks/graphql/use-with-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ export function useWithSetup(search?: { i?: string }): UseWithSetup {
return;
}
if (isMentorEdited) {
if (idx === SetupStepType.SELECT_KEYWORDS) {
if (steps[idx].type === SetupStepType.SELECT_KEYWORDS) {
saveMentorKeywords();
} else if (idx === SetupStepType.MENTOR_PRIVACY) {
} else if (steps[idx].type === SetupStepType.MENTOR_PRIVACY) {
saveMentorPrivacy();
} else {
saveMentorDetails();
Expand Down

0 comments on commit 1c196f4

Please sign in to comment.