fix janky support amount on file page
This commit is contained in:
parent
618ecfb639
commit
d0f0ed2796
1 changed files with 1 additions and 6 deletions
|
@ -28,12 +28,7 @@ class FileValues extends PureComponent<Props> {
|
|||
if (!claim || !metadata) {
|
||||
return <span className="empty">{__('Empty claim or metadata info.')}</span>;
|
||||
}
|
||||
const supportsAmount =
|
||||
claim &&
|
||||
claim.meta &&
|
||||
claim.amount &&
|
||||
claim.meta.effective_amount &&
|
||||
Number(claim.meta.effective_amount) - Number(claim.amount);
|
||||
const supportsAmount = claim && claim.meta && claim.meta.support_amount && Number(claim.meta.support_amount);
|
||||
return (
|
||||
<Fragment>
|
||||
<Card
|
||||
|
|
Loading…
Add table
Reference in a new issue