From 8aebcf4aa2b66280c081e37f27320ebcb84772e0 Mon Sep 17 00:00:00 2001 From: Alexander Petkov Date: Thu, 13 Apr 2023 18:08:07 +0300 Subject: [PATCH] one-time-donation/Steps.tsx: Fix isAnonymous initial value 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. --- src/components/client/one-time-donation/Steps.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/client/one-time-donation/Steps.tsx b/src/components/client/one-time-donation/Steps.tsx index 63b77518c..1b154e0a2 100644 --- a/src/components/client/one-time-donation/Steps.tsx +++ b/src/components/client/one-time-donation/Steps.tsx @@ -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