From a0475c96f35b70ced004baf797ecdab5baec0670 Mon Sep 17 00:00:00 2001 From: Aleksandar Petkov Date: Sun, 16 Apr 2023 01:44:49 +0300 Subject: [PATCH] one-time-donation/Steps.tsx: Fix isAnonymous initial value (#1407) 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