From 08ecbcf242073ca61e535648ac3d6ff3133f49d1 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 16 Jun 2016 16:41:57 -0700 Subject: Create disclaimer approval reducer --- ui/app/reducers/metamask.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index a45327189..646100120 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -25,6 +25,11 @@ function reduceMetamask(state, action) { case actions.UPDATE_METAMASK_STATE: return extend(metamaskState, action.value) + case actions.AGREE_TO_DISCLAIMER: + return extend(metamaskState, { + isConfirmed: true, + }) + case actions.UNLOCK_METAMASK: return extend(metamaskState, { isUnlocked: true, -- cgit v1.2.3