OSDN Git Service

Add the BTM amount Unit
[bytom/bytom-electron.git] / src / features / core / reducers.js
index 4a20b47..ba39014 100644 (file)
@@ -215,6 +215,13 @@ const lang = (state = defaultLang, action) => {
   return state
 }
 
+const btmAmountUnit = (state = 'BTM', action) => {
+  if (action.type == 'UPDATE_BTM_AMOUNT_UNIT') {
+    return action.param
+  }
+  return state
+}
+
 export default combineReducers({
   blockchainId,
   blockHeight,
@@ -242,5 +249,6 @@ export default combineReducers({
   syncEstimates,
   validToken,
   version,
-  lang
+  lang,
+  btmAmountUnit
 })