Skip to content

Commit

Permalink
Merge pull request #203 from chchaeun/hotfix/myQuizDetail
Browse files Browse the repository at this point in the history
내 퀴즈가 불러와지지 않는 오류를 해결했습니다.
  • Loading branch information
chchaeun authored Nov 18, 2022
2 parents 3986031 + df92388 commit 168ad68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/quizzes/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ function useMyQuizDetailQuery({ quizId, successHandler }: MyQuizProps) {
},
enabled: !!quizId,
onSuccess: (data) => {
successHandler(data);
if (successHandler) {
successHandler(data);
}
},
}
);
Expand Down

0 comments on commit 168ad68

Please sign in to comment.