Clear comment after submitting, for multiple bets

This commit is contained in:
James Grugett 2022-05-02 10:43:17 -04:00
parent d6a9b89c43
commit 0b5b0bb9d3

View File

@ -385,6 +385,7 @@ export function FeedBet(props: {
async function submitComment() { async function submitComment() {
if (!user || !comment || !canComment) return if (!user || !comment || !canComment) return
await createComment(contract.id, comment, user, id) await createComment(contract.id, comment, user, id)
setComment('')
} }
const bought = amount >= 0 ? 'bought' : 'sold' const bought = amount >= 0 ? 'bought' : 'sold'