Skip to content

Commit 67d2176

Browse files
committed
fix: mutation-model 경로 문제해결
1 parent ab77b46 commit 67d2176

File tree

1 file changed

+2
-2
lines changed
  • src/app/(home)/goal/create-onboard

1 file changed

+2
-2
lines changed

src/app/(home)/goal/create-onboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { SwipeActionButton } from '@/shared/components/input/SwipeActionButton';
1010
import { WelcomeStep, GoalNameStep, DateStep, CompleteStep } from '@/composite/goal-onboard';
1111
import { ROUTES } from '@/shared/constants/routes';
1212
import { useFetchUserName } from '@/shared/hooks';
13-
import { createCreateGoalMutation } from '@/model/goal/hooks';
13+
import { GoalMutation } from '@/model/goal/hooks';
1414
import { GoalQueryKeys } from '@/model/goal/queryKeys';
1515
import { userApi, UserQueryKeys } from '@/model/user';
1616
import { 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);

0 commit comments

Comments
 (0)