sendNewCommentEmail: forgot abs value

This commit is contained in:
mantikoros 2022-04-27 23:34:50 -04:00
parent d9ee03a96f
commit 45aa6646fa

View File

@ -190,7 +190,7 @@ export const sendNewCommentEmail = async (
if (bet) { if (bet) {
const { amount, sale } = bet const { amount, sale } = bet
betDescription = `${sale || amount < 0 ? 'sold' : 'bought'} ${formatMoney( betDescription = `${sale || amount < 0 ? 'sold' : 'bought'} ${formatMoney(
amount Math.abs(amount)
)}` )}`
} }