diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-10-21 19:12:40 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-10-21 22:01:20 +0800 |
commit | 614995c0e933fcc984126eee20fb7dd4533e8e5b (patch) | |
tree | 7f2b29433e6df871122b74770e1106206889274f /ui/app/components/currency-display/currency-display.container.js | |
parent | ba3617b685b9dcd8a62e0009ee2015c5997fead3 (diff) | |
download | tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.tar.gz tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.tar.zst tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.zip |
Fix account display width for large currency values
Diffstat (limited to 'ui/app/components/currency-display/currency-display.container.js')
-rw-r--r-- | ui/app/components/currency-display/currency-display.container.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/currency-display/currency-display.container.js b/ui/app/components/currency-display/currency-display.container.js index b387229b5..1b3fe74da 100644 --- a/ui/app/components/currency-display/currency-display.container.js +++ b/ui/app/components/currency-display/currency-display.container.js @@ -26,14 +26,15 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { const convertedValue = getValueFromWeiHex({ value, toCurrency, conversionRate, numberOfDecimals, toDenomination: denomination, }) - const formattedValue = formatCurrency(convertedValue, toCurrency) - const displayValue = hideLabel ? formattedValue : `${formattedValue} ${toCurrency.toUpperCase()}` + const displayValue = formatCurrency(convertedValue, toCurrency) + const suffix = hideLabel ? undefined : toCurrency.toUpperCase() return { ...restStateProps, ...dispatchProps, ...restOwnProps, displayValue, + suffix, } } |