From 70442591449cc854c8127b9c2efc9c8af29a5f8d Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 3 May 2022 11:06:26 -0400 Subject: [PATCH] Prompt signin even if no comment --- web/components/feed/feed-items.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx index 9e492916..31d4d60c 100644 --- a/web/components/feed/feed-items.tsx +++ b/web/components/feed/feed-items.tsx @@ -259,10 +259,10 @@ export function CommentInput(props: { const { id } = mostRecentCommentableBet || { id: undefined } async function submitComment(betId: string | undefined) { - if (!comment) return if (!user) { return await firebaseLogin() } + if (!comment) return await createComment(contract.id, comment, user, betId, answerOutcome) setComment('') }