Skip to content

Commit 07b2324

Browse files
committed
hotfix
1 parent 55c17d9 commit 07b2324

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/data/answers/get-user-answer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export const getUserAnswer = async (opts: { questionUid: string }) => {
1313

1414
const user = await getUser();
1515

16+
if (!user) {
17+
return false;
18+
}
19+
1620
try {
1721
// find the answer to the question
1822
return await prisma.answers.findFirst({

0 commit comments

Comments
 (0)