message: CurrencyWallet - fix recieve modal
diff: @@ -94,12 +94,15 @@ class CurrencyWallet extends Component<any, any> {
  itemCurrency = itemCurrency[0]
  //@ts-ignore
  - const { currency, address, contractAddress, decimals, balance, infoAboutCurrency } = itemCurrency
  + const { currency, standard, tokenKey, address, contractAddress, decimals, balance, infoAboutCurrency } = itemCurrency
  const hasCachedData = lsDataCache.get(`TxHistory_${getCurrencyKey(currency, true).toLowerCase()}_${walletAddress}`)
  +console.log('>>> standard, tokenKey', standard, tokenKey)
  this.state = {
  itemCurrency,
  address,
  + standard,
  + tokenKey,
  walletAddress,
  balance,
  decimals,
  @@ -122,6 +125,10 @@ class CurrencyWallet extends Component<any, any> {
  const {
  currency,
  itemCurrency,
  + itemCurrency: {
  + tokenKey,
  + standard,
  + },
  token,
  balance,
  infoAboutCurrency,
  @@ -145,8 +152,8 @@ class CurrencyWallet extends Component<any, any> {
  actions.user.getBalances()
  }
  - if (token && itemCurrency.standard) {
  - actions[itemCurrency.standard].getBalance(currency.toLowerCase(), walletAddress).then((balance) => {
  + if (token && standard) {
  + actions[standard].getBalance(currency.toLowerCase(), walletAddress).then((balance) => {
  this.setState({
  balance,
  })
  @@ -168,7 +175,7 @@ class CurrencyWallet extends Component<any, any> {
  }
  const targetCurrency = getCurrencyKey(currency.toLowerCase(), true)
  - const firstUrlPart = itemCurrency.tokenKey ? `/token/${itemCurrency.tokenKey}` : `/${targetCurrency}`
  + const firstUrlPart = tokenKey ? `/token/${tokenKey}` : `/${targetCurrency}`
  const withdrawUrl = `${firstUrlPart}/${address}/send`
  const receiveUrl = `${firstUrlPart}/${address}/receive`
  @@ -190,8 +197,9 @@ class CurrencyWallet extends Component<any, any> {
  if (this.props.history.location.pathname.toLowerCase() === receiveUrl.toLowerCase()) {
  actions.modals.open(constants.modals.ReceiveModal, {
  - currency,
  + currency: (tokenKey || currency),
  address,
  + standard,
  })
  }
  }
  