1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
David Walsh 2020-11-05 11:09:42 -06:00
parent 8a3dabb230
commit cce269b632
2 changed files with 2 additions and 5 deletions

View File

@ -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'),
),
}
})

View File

@ -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)