Skip to content

Commit

Permalink
Show native currency symbol for custom chains
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh committed Oct 25, 2018
1 parent 5abfd8d commit b551822
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default class SettingsTab extends PureComponent {
sendHexData: PropTypes.bool,
currentCurrency: PropTypes.string,
conversionDate: PropTypes.number,
nativeCurrency: PropTypes.string,
useNativeCurrencyAsPrimaryCurrency: PropTypes.bool,
setUseNativeCurrencyAsPrimaryCurrencyPreference: PropTypes.func,
}
Expand Down Expand Up @@ -408,7 +409,11 @@ export default class SettingsTab extends PureComponent {

renderUsePrimaryCurrencyOptions () {
const { t } = this.context
const { useNativeCurrencyAsPrimaryCurrency, setUseNativeCurrencyAsPrimaryCurrencyPreference } = this.props
const {
nativeCurrency,
setUseNativeCurrencyAsPrimaryCurrencyPreference,
useNativeCurrencyAsPrimaryCurrency,
} = this.props

return (
<div className="settings-page__content-row">
Expand All @@ -432,7 +437,7 @@ export default class SettingsTab extends PureComponent {
htmlFor="native-primary-currency"
className="settings-tab__radio-label"
>
{ t('eth') }
{ nativeCurrency }
</label>
</div>
<div className="settings-tab__radio-button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const mapStateToProps = state => {
const {
currentCurrency,
conversionDate,
nativeCurrency,
useBlockie,
featureFlags: { sendHexData } = {},
provider = {},
Expand All @@ -34,6 +35,7 @@ const mapStateToProps = state => {
currentLocale,
currentCurrency,
conversionDate,
nativeCurrency,
useBlockie,
sendHexData,
provider,
Expand Down

0 comments on commit b551822

Please sign in to comment.