resolution email: show n/a for canceled numeric

This commit is contained in:
mantikoros 2022-08-24 23:44:23 -05:00
parent 93739e7990
commit 18f2550e4d

View File

@ -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)