1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Correct token pluralization for one token

This commit is contained in:
Dan Finlay 2017-07-27 18:07:42 -07:00
parent 6c25f9950b
commit 87c26eb5bc

View File

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