diff --git a/functions/src/email-templates/market-answer-comment.html b/functions/src/email-templates/market-answer-comment.html
new file mode 100644
index 00000000..4e1a2bfa
--- /dev/null
+++ b/functions/src/email-templates/market-answer-comment.html
@@ -0,0 +1,561 @@
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Answer {{answerNumber}}
+ |
+
+
+
+
+ {{answer}}
+
+ |
+
+
+
+
+ 
+ {{commentorName}}
+ {{betDescription}}
+
+ |
+
+
+
+
+ {{comment}}
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+ |
+
+
+
+
diff --git a/functions/src/emails.ts b/functions/src/emails.ts
index 221c542f..28850af8 100644
--- a/functions/src/emails.ts
+++ b/functions/src/emails.ts
@@ -147,7 +147,8 @@ export const sendNewCommentEmail = async (
commentCreator: User,
contract: Contract,
comment: Comment,
- bet: Bet
+ bet: Bet,
+ answer?: Answer
) => {
const privateUser = await getPrivateUser(userId)
if (
@@ -168,27 +169,49 @@ export const sendNewCommentEmail = async (
const { text } = comment
const { amount, sale, outcome } = bet
- const betDescription = `${sale ? 'sold' : 'bought'} M$ ${Math.round(
- amount
- )} of ${toDisplayResolution(outcome)}`
+ let betDescription = `${sale ? 'sold' : 'bought'} M$ ${Math.round(amount)}`
const subject = `Comment on ${question}`
const from = `${commentorName}