mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Lint
This commit is contained in:
parent
8a3dabb230
commit
cce269b632
@ -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…
Reference in New Issue
Block a user