aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/metamask.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-07-22 01:15:34 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-07-22 01:15:34 +0800
commit4a9d5b1c258912acedd6f1e89fb632526d9c910b (patch)
treee8a35826a47995c7fb8a32e30950a304e7a3c1ab /ui/app/reducers/metamask.js
parent491b9cddc5fe1a7d0899d29c9a53aa71f04b9b28 (diff)
downloadtangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar.gz
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar.bz2
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar.lz
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar.xz
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.tar.zst
tangerine-wallet-browser-4a9d5b1c258912acedd6f1e89fb632526d9c910b.zip
Add data field to pass up parameters up to reducer.
Diffstat (limited to 'ui/app/reducers/metamask.js')
-rw-r--r--ui/app/reducers/metamask.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index f3ef8eb11..d5d17135f 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -109,6 +109,12 @@ function reduceMetamask (state, action) {
var identities = extend(metamaskState.identities, id)
return extend(metamaskState, { identities })
+ case actions.SET_CURRENT_FIAT:
+ return extend(metaMaskState, {
+ currentFiat: action.value.currentFiat,
+ conversionRate: action.value.conversionRate,
+ })
+
default:
return metamaskState