Prevent 500 error on markets with no collected fees
This commit is contained in:
parent
9b376fb11a
commit
948d878222
|
@ -87,7 +87,7 @@ export function ContractInfoDialog(props: { contract: Contract; bets: Bet[] }) {
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Creator earnings</td>
|
<td>Creator earnings</td>
|
||||||
<td>{formatMoney(contract.collectedFees.creatorFee)}</td>
|
<td>{formatMoney(contract.collectedFees?.creatorFee ?? 0)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user