aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/metamask.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-18 04:13:20 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-19 11:21:46 +0800
commit60eda592b5979ac1fdbfb6d5b3418a4924abc14d (patch)
treec688881be17265045f5b0afa61c1802669643388 /ui/app/reducers/metamask.js
parentf81226fbe9f98d5a6c408e289fa0ea61a467e7dc (diff)
downloadtangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar.gz
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar.bz2
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar.lz
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar.xz
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.tar.zst
tangerine-wallet-browser-60eda592b5979ac1fdbfb6d5b3418a4924abc14d.zip
Handling to and amount errors.
Diffstat (limited to 'ui/app/reducers/metamask.js')
-rw-r--r--ui/app/reducers/metamask.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index 6915dbb0f..fb2b2e674 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -29,6 +29,7 @@ function reduceMetamask (state, action) {
to: '',
amount: '0x0',
memo: '',
+ errors: {},
},
}, state.metamask)
@@ -224,6 +225,21 @@ function reduceMetamask (state, action) {
},
})
+ case actions.UPDATE_SEND_ERRORS:
+ console.log(123, {
+ ...metamaskState.send.errors,
+ ...action.value,
+ })
+ return extend(metamaskState, {
+ send: {
+ ...metamaskState.send,
+ errors: {
+ ...metamaskState.send.errors,
+ ...action.value,
+ }
+ },
+ })
+
default:
return metamaskState