From ad0129fa025012a6a8234db69ee4fa1763d5aff8 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Wed, 31 Oct 2018 11:31:55 -0700 Subject: Revert "Remove default in state reducer" This reverts commit cc2719492d72602ecd1c503cf0ecee95cd05db33. --- packages/instant/src/redux/reducer.ts | 2 ++ packages/instant/tslint.json | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/instant') diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts index a3f38c880..11980066b 100644 --- a/packages/instant/src/redux/reducer.ts +++ b/packages/instant/src/redux/reducer.ts @@ -187,6 +187,8 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State => buyOrderState: { processState: OrderProcessState.NONE }, selectedAssetAmount: undefined, }; + default: + return state; } }; diff --git a/packages/instant/tslint.json b/packages/instant/tslint.json index d43ee8da7..08b76be97 100644 --- a/packages/instant/tslint.json +++ b/packages/instant/tslint.json @@ -3,7 +3,6 @@ "rules": { "custom-no-magic-numbers": false, "semicolon": [true, "always", "ignore-bound-class-methods"], - "max-classes-per-file": false, - "switch-default": false + "max-classes-per-file": false } } -- cgit