From a416a2de6eaff7ecf0fe89452f74e5759babc475 Mon Sep 17 00:00:00 2001 From: TrueMilli <61841994+TrueMilli@users.noreply.github.com> Date: Fri, 3 Jun 2022 00:48:45 +0200 Subject: [PATCH] Update functions/src/create-contract.ts --- 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 3fce71a6..c93b715f 100644 --- a/functions/src/create-contract.ts +++ b/functions/src/create-contract.ts @@ -60,7 +60,7 @@ export const createContract = newEndpoint(['POST'], async (req, [user, _]) => { if (max - min <= 0.01) throw new APIError(400, 'Invalid range.') } if (outcomeType === 'BINARY') { - ;({ initialProb } = validate(binarySchema, req.body)) // leading ; intentional: see abive + ;({ initialProb } = validate(binarySchema, req.body)) // leading ; intentional: see above } // Uses utc time on server: