From f7c6155a7cd8a082c34660d16a3531ef45cf61e7 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Mon, 15 Aug 2022 22:11:48 -0700 Subject: [PATCH] Fix typing in `createmarket` --- 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 918f5c79..9a44b100 100644 --- a/functions/src/create-contract.ts +++ b/functions/src/create-contract.ts @@ -133,7 +133,7 @@ export const createmarket = newEndpoint({}, async (req, auth) => { if (ante > user.balance) throw new APIError(400, `Balance must be at least ${ante}.`) - let group = null + let group: Group | null = null if (groupId) { const groupDocRef = firestore.collection('groups').doc(groupId) const groupDoc = await groupDocRef.get()