File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/(home)/goal/create-onboard Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { SwipeActionButton } from '@/shared/components/input/SwipeActionButton';
1010import { WelcomeStep , GoalNameStep , DateStep , CompleteStep } from '@/composite/goal-onboard' ;
1111import { ROUTES } from '@/shared/constants/routes' ;
1212import { useFetchUserName } from '@/shared/hooks' ;
13- import { createCreateGoalMutation } from '@/model/goal/hooks' ;
13+ import { GoalMutation } from '@/model/goal/hooks' ;
1414import { GoalQueryKeys } from '@/model/goal/queryKeys' ;
1515import { userApi , UserQueryKeys } from '@/model/user' ;
1616import { useToast } from '@/shared/components/feedBack/toast' ;
@@ -35,7 +35,7 @@ function GoalOnboardContent() {
3535 const endDate = watch ( 'durationDate.endDate' ) ;
3636
3737 const { mutate : createGoal , isPending } = useMutation (
38- createCreateGoalMutation ( {
38+ GoalMutation . createGoal ( {
3939 onSuccess : data => {
4040 queryClient . invalidateQueries ( { queryKey : GoalQueryKeys . progress ( ) } ) ;
4141 setCreatedGoalData ( data ) ;
You can’t perform that action at this time.
0 commit comments