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
.stub()
.callsFake((address) =>
Promise.resolve(
address?.match(/isContract/u) ? 'not-0x' : '0x',
),
Promise.resolve(address?.match(/isContract/u) ? 'not-0x' : '0x'),
),
}
})

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

Loading…
Cancel
Save