diff --git a/web/components/answers-panel.tsx b/web/components/answers-panel.tsx index 483190ef..4309d8a2 100644 --- a/web/components/answers-panel.tsx +++ b/web/components/answers-panel.tsx @@ -350,6 +350,7 @@ function AnswerBetPanel(props: { function CreateAnswerInput(props: { contract: Contract }) { const { contract } = props + const user = useUser() const [text, setText] = useState('') const [betAmount, setBetAmount] = useState(10) const [amountError, setAmountError] = useState() @@ -451,17 +452,28 @@ function CreateAnswerInput(props: { contract: Contract }) { )} - + {user ? ( + + ) : ( + text && ( + + ) + )}