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() {
if (!comment) return
if (!user) {
await firebaseLogin()
return
return await firebaseLogin()
}
await createComment(contract.id, comment, user)
setComment('')