Prompt signin even if no comment
This commit is contained in:
parent
63bf7649b5
commit
7044259144
|
@ -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('')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user