Skip to content

Commit

Permalink
one-time-donation/Steps.tsx Add session to donate's dependency array
Browse files Browse the repository at this point in the history
Donate function needs to be redefined, with person's data in case user logs in on step two of donation flow.
Without this change any information coming from acccount/me response is considered undefined, even if user logs in during the second step, as this information was not available during the definition of donate
  • Loading branch information
sashko9807 committed Oct 31, 2023
1 parent e4ebddb commit e7954b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/client/one-time-donation/Steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function DonationStepper({ onStepChange }: DonationStepperProps)
window.location.href = data.session.url
}
},
[mutation],
[mutation, session],
)

const onSubmit = async (
Expand Down

0 comments on commit e7954b6

Please sign in to comment.