mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add suffix to title text only when it exists (#6546)
This commit is contained in:
parent
2845398c3d
commit
6aa889280d
@ -23,7 +23,7 @@ export default class CurrencyDisplay extends PureComponent {
|
|||||||
render () {
|
render () {
|
||||||
const { className, displayValue, prefix, prefixComponent, style, suffix, hideTitle } = this.props
|
const { className, displayValue, prefix, prefixComponent, style, suffix, hideTitle } = this.props
|
||||||
const text = `${prefix || ''}${displayValue}`
|
const text = `${prefix || ''}${displayValue}`
|
||||||
const title = `${text} ${suffix}`
|
const title = suffix ? `${text} ${suffix}` : text
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user