From ea6849f529c175bb6ceafd38e1c3d942bf2bf3ad Mon Sep 17 00:00:00 2001 From: Dustin Do Date: Sun, 8 Sep 2024 17:43:22 +0700 Subject: [PATCH] fix(mobile): fix creating init budget (#289) --- apps/mobile/app/onboarding/step-two.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mobile/app/onboarding/step-two.tsx b/apps/mobile/app/onboarding/step-two.tsx index db643a04..c2068164 100644 --- a/apps/mobile/app/onboarding/step-two.tsx +++ b/apps/mobile/app/onboarding/step-two.tsx @@ -52,9 +52,6 @@ export function FormSubmitButton({ ) } -const budgetId = createId() -const periodId = createId() - export default function StepTwoScreen() { const { i18n } = useLingui() const defaultCurrency = useDefaultCurrency() @@ -71,6 +68,9 @@ export default function StepTwoScreen() { }) async function handleSubmit(data: OnboardBudgetFormValues) { + const budgetId = createId() + const periodId = createId() + await mutateAsync({ data: { name: t(i18n)`Monthly budget`,