diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 49513214..bf3a0cd4 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -15,6 +15,7 @@ import { getDpmWeight, getProbabilityAfterBet, } from '../lib/calculation/contract' +import { firebaseLogin } from '../lib/firebase/users' export function BetPanel(props: { contract: Contract; className?: string }) { const { contract, className } = props @@ -132,8 +133,14 @@ export function BetPanel(props: { contract: Contract; className?: string }) { )} -
Remaining balance
-
{formatMoney(remainingBalance > 0 ? remainingBalance : 0)}
+ {user && ( + <> +
+ Remaining balance +
+
{formatMoney(remainingBalance > 0 ? remainingBalance : 0)}
+ + )}
Implied probability
@@ -151,20 +158,29 @@ export function BetPanel(props: { contract: Contract; className?: string }) { - + {user ? ( + + ) : ( + + )} {wasSubmitted &&
Bet submitted!
}