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

feature/default_network_editable
Whymarrh Whitby 6 years ago committed by Dan J Miller
parent 2845398c3d
commit 6aa889280d
  1. 2
      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

Loading…
Cancel
Save