Skip to content

Commit

Permalink
fix Close (confirmation) button after requesting to join a team
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Oct 27, 2023
1 parent 419bb17 commit dfa9d74
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,16 @@ const ChallengeTeamWizard: React.FunctionComponent<
onClose()
}

const onConfirmHandlerMap: Record<string, () => Promise<void>> | void = {
const onConfirmHandlerMap: Record<
string,
(() => Promise<void>) | (() => undefined)
> | void = {
CREATE_NEW_TEAM: handleCreateTeam,
JOIN_REQUEST_FORM: handleRequestMembership,
JOIN_REQUEST_SENT: () => {
hide()
return undefined
},
}

// Determine modal content based on step.id
Expand Down

0 comments on commit dfa9d74

Please sign in to comment.