From decb3213f619e61078868cfcadc00a61e40ea510 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Wed, 12 Oct 2022 08:05:55 -0600 Subject: [PATCH] Ignore cancel resolutions for proven correct --- functions/src/on-update-contract.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/src/on-update-contract.ts b/functions/src/on-update-contract.ts index f0aa0252..cef4d99f 100644 --- a/functions/src/on-update-contract.ts +++ b/functions/src/on-update-contract.ts @@ -39,7 +39,8 @@ export const onUpdateContract = functions.firestore async function handleResolvedContract(contract: Contract) { if ( (contract.uniqueBettorCount ?? 0) < - MINIMUM_UNIQUE_BETTORS_FOR_PROVEN_CORRECT_BADGE + MINIMUM_UNIQUE_BETTORS_FOR_PROVEN_CORRECT_BADGE || + contract.resolution === 'CANCEL' ) return