Merge pull request #1992 from MetaMask/MultipleTokensText

Multiple tokens shows the amount when greater than 1
feature/default_network_editable
Kevin Serrano 7 years ago committed by GitHub
commit ec286a2b33
  1. 1
      CHANGELOG.md
  2. 2
      ui/app/components/token-list.js

@ -4,6 +4,7 @@
- Make eth_sign deprecation warning less noisy - Make eth_sign deprecation warning less noisy
- Fix bug with network version serialization over synchronous RPC - Fix bug with network version serialization over synchronous RPC
- Add the total amount of tokens when multiple tokens are added under the token list
## 3.9.11 2017-8-24 ## 3.9.11 2017-8-24

@ -95,7 +95,7 @@ TokenList.prototype.renderTokenStatusBar = function () {
let msg let msg
if (tokens.length === 1) { if (tokens.length === 1) {
msg = `You own 1 token` msg = `You own 1 token`
} else if (tokens.length === 1) { } else if (tokens.length > 1) {
msg = `You own ${tokens.length} tokens` msg = `You own ${tokens.length} tokens`
} else { } else {
msg = `No tokens found` msg = `No tokens found`

Loading…
Cancel
Save