Prompt signin even if no comment

This commit is contained in:
Ian Philips 2022-05-03 11:06:26 -04:00
parent 63bf7649b5
commit 7044259144

View File

@ -259,10 +259,10 @@ export function CommentInput(props: {
const { id } = mostRecentCommentableBet || { id: undefined } const { id } = mostRecentCommentableBet || { id: undefined }
async function submitComment(betId: string | undefined) { async function submitComment(betId: string | undefined) {
if (!comment) return
if (!user) { if (!user) {
return await firebaseLogin() return await firebaseLogin()
} }
if (!comment) return
await createComment(contract.id, comment, user, betId, answerOutcome) await createComment(contract.id, comment, user, betId, answerOutcome)
setComment('') setComment('')
} }