Handle case of missing effective_amount
Closes 916 "NaN in Total Staked Amount" Contemplated putting the fallback into `<CreditAmount>` itself, but decided to minimize testing. Not sure if there are clients that would rely on NaN being used.
This commit is contained in:
parent
de9b3b641d
commit
5a1ad487f3
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class FileValues extends PureComponent<Props> {
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<CreditAmount amount={Number(claim.meta.effective_amount)} precision={2} />
|
<CreditAmount amount={Number(claim.meta.effective_amount) || 0} precision={2} />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue