From 68428c76a709f96f80327f4a2173000c7358add7 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 16 Feb 2022 12:40:20 -0600 Subject: [PATCH] Create answer bet has isAnte: true --- functions/src/create-answer.ts | 2 +- web/components/bets-list.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/src/create-answer.ts b/functions/src/create-answer.ts index 492cb10a..d8cc4a90 100644 --- a/functions/src/create-answer.ts +++ b/functions/src/create-answer.ts @@ -97,7 +97,7 @@ export const createAnswer = functions.runWith({ minInstances: 1 }).https.onCall( const { newBet, newPool, newTotalShares, newTotalBets, newBalance } = getNewMultiBetInfo(user, answerId, amount, contract, newBetDoc.id) - transaction.create(newBetDoc, newBet) + transaction.create(newBetDoc, { ...newBet, isAnte: true }) transaction.update(contractDoc, { pool: newPool, totalShares: newTotalShares, diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 7fccc2c0..657b35d3 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -23,7 +23,6 @@ import { import { Row } from './layout/row' import { UserLink } from './user-page' import { - calculateCancelPayout, calculatePayout, calculateSaleAmount, getProbability,