From 2359b5b337d9504d1797c9d56cc6906182e4ee14 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sun, 14 Aug 2022 18:24:23 -0700 Subject: [PATCH] Treat a bounty market like FR for now --- functions/src/create-contract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/create-contract.ts b/functions/src/create-contract.ts index 44ced6a8..ec1b7f46 100644 --- a/functions/src/create-contract.ts +++ b/functions/src/create-contract.ts @@ -234,7 +234,7 @@ export const createmarket = newEndpoint({}, async (req, auth) => { ) ) await contractRef.update({ answers: answerObjects }) - } else if (outcomeType === 'FREE_RESPONSE') { + } else if (outcomeType === 'FREE_RESPONSE' || outcomeType === 'BOUNTY') { const noneAnswerDoc = firestore .collection(`contracts/${contract.id}/answers`) .doc('0')