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>
zio/stable
Eric Bailey 2024-03-21 14:11:23 -05:00 committed by GitHub
parent e874dd290e
commit 4d50aac4ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export function FormError({error}: {error?: string}) {
a.gap_sm, a.gap_sm,
]}> ]}>
<Warning fill={t.palette.white} size="md" /> <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]}> <Text style={[{color: t.palette.white}, a.font_bold, a.leading_snug]}>
{error} {error}
</Text> </Text>

View File

@ -207,7 +207,7 @@ export function useSubmitSignup({
}) { }) {
const {_} = useLingui() const {_} = useLingui()
const {createAccount} = useSessionApi() const {createAccount} = useSessionApi()
const {mutate: setBirthDate} = usePreferencesSetBirthDateMutation() const {mutateAsync: setBirthDate} = usePreferencesSetBirthDateMutation()
const {mutate: setSavedFeeds} = useSetSaveFeedsMutation() const {mutate: setSavedFeeds} = useSetSaveFeedsMutation()
const onboardingDispatch = useOnboardingDispatch() const onboardingDispatch = useOnboardingDispatch()
@ -264,7 +264,7 @@ export function useSubmitSignup({
inviteCode: state.inviteCode.trim(), inviteCode: state.inviteCode.trim(),
verificationCode: verificationCode, verificationCode: verificationCode,
}) })
setBirthDate({birthDate: state.dateOfBirth}) await setBirthDate({birthDate: state.dateOfBirth})
if (IS_PROD_SERVICE(state.serviceUrl)) { if (IS_PROD_SERVICE(state.serviceUrl)) {
setSavedFeeds(DEFAULT_PROD_FEEDS) setSavedFeeds(DEFAULT_PROD_FEEDS)
} }