Prevent 500 error on markets with no collected fees

This commit is contained in:
James Grugett 2022-05-10 23:01:07 -04:00
parent 9b376fb11a
commit 948d878222

View File

@ -87,7 +87,7 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
<tr>
<td>Creator earnings</td>
<td>{formatMoney(contract.collectedFees.creatorFee)}</td>
<td>{formatMoney(contract.collectedFees?.creatorFee ?? 0)}</td>
</tr>
<tr>