about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/components/forms/FormError.tsx2
-rw-r--r--src/screens/Signup/state.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/forms/FormError.tsx b/src/components/forms/FormError.tsx
index 9e72df879..8ab6e3f35 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,
       ]}>
       <Warning fill={t.palette.white} size="md" />
-      <View>
+      <View style={[a.flex_1]}>
         <Text style={[{color: t.palette.white}, a.font_bold, a.leading_snug]}>
           {error}
         </Text>
diff --git a/src/screens/Signup/state.ts b/src/screens/Signup/state.ts
index f185e2d44..86a144368 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)
         }