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> <div>
<UserLink displayName={contract.creatorName} /> <UserLink displayName={contract.creatorName} />
</div> </div>
{resolution && <div></div>} {resolution && (
<>
<div></div>
<div> <div>
Resolved {resolution === 'YES' && <YesLabel />} Resolved {resolution === 'YES' && <YesLabel />}
{resolution === 'NO' && <NoLabel />} {resolution === 'NO' && <NoLabel />}
{resolution === 'CANCEL' && <CancelLabel />} {resolution === 'CANCEL' && <CancelLabel />}
</div> </div>
</>
)}
</Row> </Row>
</a> </a>
</Link> </Link>