Condense line

This commit is contained in:
Ian Philips 2022-04-21 11:01:26 -06:00
parent e938e70aae
commit b46ca3da29

View File

@ -216,8 +216,7 @@ export function CommentInput(props: {
async function submitComment() { async function submitComment() {
if (!comment) return if (!comment) return
if (!user) { if (!user) {
await firebaseLogin() return await firebaseLogin()
return
} }
await createComment(contract.id, comment, user) await createComment(contract.id, comment, user)
setComment('') setComment('')