From 9fa457dec8a0c61309065321e402b4dffa3e47ce Mon Sep 17 00:00:00 2001 From: jahooma Date: Sat, 29 Jan 2022 21:08:06 -0600 Subject: [PATCH] Hide bet row when trading not allowed --- web/components/contract-overview.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/components/contract-overview.tsx b/web/components/contract-overview.tsx index 47ce6e0a..f3896db9 100644 --- a/web/components/contract-overview.tsx +++ b/web/components/contract-overview.tsx @@ -3,6 +3,7 @@ import { Contract, deleteContract, contractPath, + tradingAllowed, } from '../lib/firebase/contracts' import { Col } from './layout/col' import { Spacer } from './layout/spacer' @@ -58,11 +59,13 @@ export const ContractOverview = (props: { large /> - + {tradingAllowed(contract) && ( + + )}