aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-01 02:31:55 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-01 02:31:55 +0800
commitad0129fa025012a6a8234db69ee4fa1763d5aff8 (patch)
tree8b9d8b10f1e4dd6ce6aacc02e27a2845414c5cdc
parent59118796394b3390966e9d87349ea28407810e1a (diff)
downloaddexon-sol-tools-ad0129fa025012a6a8234db69ee4fa1763d5aff8.tar.gz
dexon-sol-tools-ad0129fa025012a6a8234db69ee4fa1763d5aff8.tar.zst
dexon-sol-tools-ad0129fa025012a6a8234db69ee4fa1763d5aff8.zip
Revert "Remove default in state reducer"
This reverts commit cc2719492d72602ecd1c503cf0ecee95cd05db33.
-rw-r--r--packages/instant/src/redux/reducer.ts2
-rw-r--r--packages/instant/tslint.json3
2 files changed, 3 insertions, 2 deletions
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
}
}