File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ export const PageOnboarding = () => {
28
28
const submitOnboarding = useMutation (
29
29
orpc . account . submitOnboarding . mutationOptions ( {
30
30
onSuccess : ( _ , variables ) => {
31
- toast . success ( `Welcome ${ variables . name } ` ) ;
31
+ toast . success ( `Welcome ${ variables . name } ` ) ; // TODO translations
32
32
session . refetch ( ) ;
33
33
} ,
34
+ onError : ( ) => {
35
+ toast . error ( 'Failed to finish onboarding' ) ; // TODO translations
36
+ } ,
34
37
} )
35
38
) ;
36
39
Original file line number Diff line number Diff line change 1
1
import { z } from 'zod' ;
2
2
3
3
import { zFormFieldsOnboarding } from '@/features/auth/schema' ;
4
- import { protectedProcedure } from '@/server/orpc' ;
5
4
import { zUser } from '@/features/user/schema' ;
5
+ import { protectedProcedure } from '@/server/orpc' ;
6
6
7
7
const tags = [ 'account' ] ;
8
8
You can’t perform that action at this time.
0 commit comments