Skip to content

Commit

Permalink
one-time-donation/Steps.tsx: Fix isAnonymous initial value
Browse files Browse the repository at this point in the history
Currently isAnonymous initial value is always true, when user is not logged in.
This result in behavior which allows user to continue with the donation, when has not logged in, and has not chosen to donate anonymously.
  • Loading branch information
sashko9807 committed Apr 15, 2023
1 parent 6cb7d32 commit 8aebcf4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/client/one-time-donation/Steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default function DonationStepper({ onStepChange }: DonationStepperProps)
return session && session.accessToken ? true : false
}

initialValues.isAnonymous = !isLogged()
initialValues.isRecurring = false

const userEmail = session?.user?.email
Expand Down

0 comments on commit 8aebcf4

Please sign in to comment.