Skip to content

Commit

Permalink
fix(unsupported): use constant instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Jun 29, 2020
1 parent dee36b7 commit dcab80a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -18,6 +18,7 @@ import DataError from 'components/DataError'

import { getData } from './selectors'
import AccountSummary from './template.success'
import Currencies from 'core/exchange/currencies'
import Loading from './template.loading'
import Unsupported from './template.unsupported'

Expand Down Expand Up @@ -48,7 +49,7 @@ class AccountSummaryContainer extends PureComponent<Props> {

render () {
const { data } = this.props
const unsupportedCurrencies = ['TWD', 'CLP']
const unsupportedCurrencies = [Currencies.TWD.code, Currencies.CLP.code]
return data.cata({
Success: val =>
includes(val.walletCurrency, unsupportedCurrencies) ? (
Expand Down

0 comments on commit dcab80a

Please sign in to comment.