1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1992 from MetaMask/MultipleTokensText

Multiple tokens shows the amount when greater than 1
This commit is contained in:
Kevin Serrano 2017-08-29 18:09:16 -07:00 committed by GitHub
commit ec286a2b33
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Make eth_sign deprecation warning less noisy
- 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

View File

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