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