feature/default_network_editable
David Walsh 4 years ago
parent 8a3dabb230
commit cce269b632
  1. 4
      ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js
  2. 3
      ui/app/pages/confirm-token-transaction-base/confirm-token-transaction-base.container.js

@ -464,9 +464,7 @@ describe('Confirm Transaction Duck', function () {
getCode: sinon getCode: sinon
.stub() .stub()
.callsFake((address) => .callsFake((address) =>
Promise.resolve( Promise.resolve(address?.match(/isContract/u) ? 'not-0x' : '0x'),
address?.match(/isContract/u) ? 'not-0x' : '0x',
),
), ),
} }
}) })

@ -41,8 +41,7 @@ const mapStateToProps = (state, ownProps) => {
transaction, transaction,
) )
const tokens = getTokens(state) const tokens = getTokens(state)
const currentToken = const currentToken = tokens?.find(({ address }) => tokenAddress === address)
tokens?.find(({ address }) => tokenAddress === address)
const { decimals, symbol: tokenSymbol } = currentToken || {} const { decimals, symbol: tokenSymbol } = currentToken || {}
const tokenData = getTokenData(data) const tokenData = getTokenData(data)

Loading…
Cancel
Save