Increase number of ETH decimals displayed in the balance view from 3 to 4 (#5710)

feature/default_network_editable
Alexander Tseung 6 years ago committed by GitHub
parent 8bed073f20
commit 83ffb9fafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/components/balance-component.js
  2. 4
      ui/app/components/transaction-view-balance/transaction-view-balance.component.js

@ -86,13 +86,13 @@ BalanceComponent.prototype.renderBalance = function () {
className: 'token-amount', className: 'token-amount',
value: balanceValue, value: balanceValue,
type: PRIMARY, type: PRIMARY,
ethNumberOfDecimals: 3, ethNumberOfDecimals: 4,
}), }),
showFiat && h(UserPreferencedCurrencyDisplay, { showFiat && h(UserPreferencedCurrencyDisplay, {
value: balanceValue, value: balanceValue,
type: SECONDARY, type: SECONDARY,
ethNumberOfDecimals: 3, ethNumberOfDecimals: 4,
}), }),
]) ])
} }

@ -37,13 +37,13 @@ export default class TransactionViewBalance extends PureComponent {
className="transaction-view-balance__primary-balance" className="transaction-view-balance__primary-balance"
value={balance} value={balance}
type={PRIMARY} type={PRIMARY}
ethNumberOfDecimals={3} ethNumberOfDecimals={4}
/> />
<UserPreferencedCurrencyDisplay <UserPreferencedCurrencyDisplay
className="transaction-view-balance__secondary-balance" className="transaction-view-balance__secondary-balance"
value={balance} value={balance}
type={SECONDARY} type={SECONDARY}
ethNumberOfDecimals={3} ethNumberOfDecimals={4}
/> />
</div> </div>
) )

Loading…
Cancel
Save