Fix: Don't show "Resolved" on unresolved markets

This commit is contained in:
Austin Chen 2021-12-15 18:51:41 -08:00
parent 02d836adda
commit 09dba6ef1e

View File

@ -75,12 +75,16 @@ function MyContractBets(props: { contractId: string; bets: Bet[] }) {
<div>
<UserLink displayName={contract.creatorName} />
</div>
{resolution && <div></div>}
<div>
Resolved {resolution === 'YES' && <YesLabel />}
{resolution === 'NO' && <NoLabel />}
{resolution === 'CANCEL' && <CancelLabel />}
</div>
{resolution && (
<>
<div></div>
<div>
Resolved {resolution === 'YES' && <YesLabel />}
{resolution === 'NO' && <NoLabel />}
{resolution === 'CANCEL' && <CancelLabel />}
</div>
</>
)}
</Row>
</a>
</Link>