aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-05-06 21:25:18 +0800
committerDan J Miller <danjm.com@gmail.com>2019-05-06 21:25:18 +0800
commit6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f (patch)
treebee77c3f6071556b8298094658835f3ca0de034c /ui/app/components
parent2845398c3d824e5da1830ba7905ffdbf8149cf9e (diff)
downloadtangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar.gz
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar.bz2
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar.lz
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar.xz
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.tar.zst
tangerine-wallet-browser-6aa889280dbbb5b01e3e1aa22ecaf54f9033d34f.zip
Add suffix to title text only when it exists (#6546)
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/ui/currency-display/currency-display.component.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/ui/currency-display/currency-display.component.js b/ui/app/components/ui/currency-display/currency-display.component.js
index 04dd89892..c15668da3 100644
--- a/ui/app/components/ui/currency-display/currency-display.component.js
+++ b/ui/app/components/ui/currency-display/currency-display.component.js
@@ -23,7 +23,7 @@ export default class CurrencyDisplay extends PureComponent {
render () {
const { className, displayValue, prefix, prefixComponent, style, suffix, hideTitle } = this.props
const text = `${prefix || ''}${displayValue}`
- const title = `${text} ${suffix}`
+ const title = suffix ? `${text} ${suffix}` : text
return (
<div