diff options
author | Dan <danjm.com@gmail.com> | 2017-11-09 03:18:27 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-11-15 08:18:00 +0800 |
commit | 0a91671ff69957596abbcffb7d20c89f144d7a69 (patch) | |
tree | 63ee87b35d472b7f68cff959527ef0e9ed14f050 /ui/app/reducers | |
parent | 34ca7290c593d6fb27faa98a660c8c0bca7e1457 (diff) | |
download | tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.gz tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.bz2 tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.lz tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.xz tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.zst tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.zip |
Fix lint errors.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index bc0d0a4b3..56bf1fba6 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -150,9 +150,9 @@ function reduceMetamask (state, action) { case actions.SAVE_ACCOUNT_LABEL: const account = action.value.account const name = action.value.label - var id = {} + const id = {} id[account] = extend(metamaskState.identities[account], { name }) - var identities = extend(metamaskState.identities, id) + const identities = extend(metamaskState.identities, id) return extend(metamaskState, { identities }) case actions.SET_CURRENT_FIAT: @@ -272,10 +272,10 @@ function reduceMetamask (state, action) { }) case actions.UPDATE_TRANSACTION_PARAMS: - const { id, value } = action + const { id: txId, value } = action let { selectedAddressTxList } = metamaskState selectedAddressTxList = selectedAddressTxList.map(tx => { - if (tx.id === id) { + if (tx.id === txId) { tx.txParams = value } return tx |