Skip to content

Commit 1aca543

Browse files
committed
feat: mutation에 에러 콘솔 추가
1 parent 8fcdd1f commit 1aca543

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/hooks/Queries/useGame.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ export const useGameRanking = () => {
1414
export const useClickGame = () => {
1515
return useMutation({
1616
mutationFn: (clubName: string) => postGameClick(clubName),
17+
onError: (error) => {
18+
console.error('Error clicking game:', error);
19+
},
1720
});
1821
};

0 commit comments

Comments
 (0)