diff --git a/src/components/forms/FormError.tsx b/src/components/forms/FormError.tsx index 9e72df8790..8ab6e3f357 100644 --- a/src/components/forms/FormError.tsx +++ b/src/components/forms/FormError.tsx @@ -20,7 +20,7 @@ export function FormError({error}: {error?: string}) { a.gap_sm, ]}> - + {error} diff --git a/src/screens/Signup/state.ts b/src/screens/Signup/state.ts index f185e2d449..86a144368f 100644 --- a/src/screens/Signup/state.ts +++ b/src/screens/Signup/state.ts @@ -207,7 +207,7 @@ export function useSubmitSignup({ }) { const {_} = useLingui() const {createAccount} = useSessionApi() - const {mutate: setBirthDate} = usePreferencesSetBirthDateMutation() + const {mutateAsync: setBirthDate} = usePreferencesSetBirthDateMutation() const {mutate: setSavedFeeds} = useSetSaveFeedsMutation() const onboardingDispatch = useOnboardingDispatch() @@ -264,7 +264,7 @@ export function useSubmitSignup({ inviteCode: state.inviteCode.trim(), verificationCode: verificationCode, }) - setBirthDate({birthDate: state.dateOfBirth}) + await setBirthDate({birthDate: state.dateOfBirth}) if (IS_PROD_SERVICE(state.serviceUrl)) { setSavedFeeds(DEFAULT_PROD_FEEDS) }