Fix everything + indicator formatting (#6239)

This commit is contained in:
Jaco 2021-10-05 07:03:55 +03:00 committed by GitHub
parent 280e51016e
commit 35abb98a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ function FormatBalance ({ children, className = '', format, formatIndex, isShort
? splitFormat(valueFormatted, labelPost, isShort)
: value
? value === 'all'
? t<string>('everything{{labelPost}}', { replace: { labelPost } })
? <>{t<string>('everything')}{labelPost || ''}</>
: applyFormat(value, formatInfo, withCurrency, withSi, isShort, labelPost)
: isString(labelPost)
? `-${labelPost}`