Skip to content

Commit

Permalink
Release fixes (#3318)
Browse files Browse the repository at this point in the history
* Fix error overflow

* await setSavedFeeds before setting birth date

* await birth date first instead of feeds

---------

Co-authored-by: Samuel Newman <[email protected]>
  • Loading branch information
estrattonbailey and mozzius authored Mar 21, 2024
1 parent e874dd2 commit 4d50aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/forms/FormError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Signup/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 4d50aac

Please sign in to comment.