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

Add suffix to title text only when it exists (#6546)

This commit is contained in:
Whymarrh Whitby 2019-05-06 10:55:18 -02:30 committed by Dan J Miller
parent 2845398c3d
commit 6aa889280d

View File

@ -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