diff options
author | Eric Bailey <git@esb.lol> | 2024-03-21 14:11:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 12:11:23 -0700 |
commit | 4d50aac4eee478c09ccc22e7c40b1b93b8ac93ec (patch) | |
tree | 884e3f3d5a71ef9afd7c3b83051b809ead4969e9 /src | |
parent | e874dd290ed07b372c5f7ca1fd763f32947c4352 (diff) | |
download | voidsky-4d50aac4eee478c09ccc22e7c40b1b93b8ac93ec.tar.zst |
Release fixes (#3318)
* Fix error overflow * await setSavedFeeds before setting birth date * await birth date first instead of feeds --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/forms/FormError.tsx | 2 | ||||
-rw-r--r-- | src/screens/Signup/state.ts | 4 |
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) } |