From cce269b63217ba79ae0705adcf372a84b17bec49 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 5 Nov 2020 11:09:42 -0600 Subject: [PATCH] Lint --- .../confirm-transaction/confirm-transaction.duck.test.js | 4 +--- .../confirm-token-transaction-base.container.js | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js b/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js index d1d427502..9921bfc46 100644 --- a/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.js +++ b/ui/app/ducks/confirm-transaction/confirm-transaction.duck.test.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'), ), } }) diff --git a/ui/app/pages/confirm-token-transaction-base/confirm-token-transaction-base.container.js b/ui/app/pages/confirm-token-transaction-base/confirm-token-transaction-base.container.js index ca67434ae..5c01aa9bd 100644 --- a/ui/app/pages/confirm-token-transaction-base/confirm-token-transaction-base.container.js +++ b/ui/app/pages/confirm-token-transaction-base/confirm-token-transaction-base.container.js @@ -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)