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