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: