From 00a9fc7b2d20eeacbd957fef47685fdfdb5d606f Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Fri, 17 Jan 2025 15:38:38 -0600 Subject: Fix radio group format --- client/src/components/GuestLogin.tsx | 10 ++++++++-- client/src/components/RsvpForm.tsx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'client/src/components') diff --git a/client/src/components/GuestLogin.tsx b/client/src/components/GuestLogin.tsx index c2bfeb9..c0eace1 100644 --- a/client/src/components/GuestLogin.tsx +++ b/client/src/components/GuestLogin.tsx @@ -84,7 +84,10 @@ function GuestLogin() { error={!!errors.firstName} helperText={errors.firstName?.message} required - {...register('firstName', { required: 'This field is required' })} + {...register('firstName', { + setValueAs: (value: string) => value.trim(), + required: 'This field is required', + })} /> value.trim(), + required: 'This field is required', + })} />