Skip to content

Commit aebe4bf

Browse files
committed
fix: add missing error on onboarding page
1 parent 32f6ef4 commit aebe4bf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/features/auth/page-onboarding.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ export const PageOnboarding = () => {
2828
const submitOnboarding = useMutation(
2929
orpc.account.submitOnboarding.mutationOptions({
3030
onSuccess: (_, variables) => {
31-
toast.success(`Welcome ${variables.name}`);
31+
toast.success(`Welcome ${variables.name}`); // TODO translations
3232
session.refetch();
3333
},
34+
onError: () => {
35+
toast.error('Failed to finish onboarding'); // TODO translations
36+
},
3437
})
3538
);
3639

app/server/routers/account.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from 'zod';
22

33
import { zFormFieldsOnboarding } from '@/features/auth/schema';
4-
import { protectedProcedure } from '@/server/orpc';
54
import { zUser } from '@/features/user/schema';
5+
import { protectedProcedure } from '@/server/orpc';
66

77
const tags = ['account'];
88

0 commit comments

Comments
 (0)