From 18f2550e4dc4ea96506a922134b758e31a935b29 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 24 Aug 2022 23:44:23 -0500 Subject: [PATCH] resolution email: show n/a for canceled numeric --- functions/src/emails.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/src/emails.ts b/functions/src/emails.ts index 047e6828..e6e52090 100644 --- a/functions/src/emails.ts +++ b/functions/src/emails.ts @@ -116,7 +116,9 @@ const toDisplayResolution = ( } if (contract.outcomeType === 'PSEUDO_NUMERIC') { - const { resolutionValue } = contract + const { resolution, resolutionValue } = contract + + if (resolution === 'CANCEL') return 'N/A' return resolutionValue ? formatLargeNumber(resolutionValue)