From 45aa6646fa2cb863071486757bf0960f27ac6718 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 27 Apr 2022 23:34:50 -0400 Subject: [PATCH] sendNewCommentEmail: forgot abs value --- functions/src/emails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/emails.ts b/functions/src/emails.ts index 20cd002b..c3b70734 100644 --- a/functions/src/emails.ts +++ b/functions/src/emails.ts @@ -190,7 +190,7 @@ export const sendNewCommentEmail = async ( if (bet) { const { amount, sale } = bet betDescription = `${sale || amount < 0 ? 'sold' : 'bought'} ${formatMoney( - amount + Math.abs(amount) )}` }