aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/reducer.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 08:35:24 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 08:35:24 +0800
commit22c4ee6ef709610155191c4b0629ba0c41ce908f (patch)
treef460d684167dcfc0307934a60f0a5b51418feb3f /packages/website/ts/redux/reducer.ts
parentfe8f2d87c79cb25a7879c2e737dbdd64b7c40f60 (diff)
downloaddexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.gz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.bz2
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.lz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.xz
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.tar.zst
dexon-sol-tools-22c4ee6ef709610155191c4b0629ba0c41ce908f.zip
Update first two string enums to native type
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r--packages/website/ts/redux/reducer.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index da69a9d00..9bd8899ad 100644
--- a/packages/website/ts/redux/reducer.ts
+++ b/packages/website/ts/redux/reducer.ts
@@ -58,7 +58,7 @@ export interface State {
const INITIAL_STATE: State = {
// Portal
- blockchainErr: '',
+ blockchainErr: BlockchainErrs.NoError,
blockchainIsLoaded: false,
generateOrderStep: GenerateOrderSteps.ChooseAssets,
networkId: undefined,
@@ -76,8 +76,8 @@ const INITIAL_STATE: State = {
screenWidth: utils.getScreenWidth(),
shouldBlockchainErrDialogBeOpen: false,
sideToAssetToken: {
- [Side.deposit]: {},
- [Side.receive]: {},
+ [Side.Deposit]: {},
+ [Side.Receive]: {},
},
tokenByAddress: {},
tokenStateByAddress: {},
@@ -294,8 +294,8 @@ export function reducer(state: State = INITIAL_STATE, action: Action) {
case ActionTypes.SWAP_ASSET_TOKENS: {
const newSideToAssetToken = _.assign({}, state.sideToAssetToken, {
- [Side.deposit]: state.sideToAssetToken[Side.receive],
- [Side.receive]: state.sideToAssetToken[Side.deposit],
+ [Side.Deposit]: state.sideToAssetToken[Side.Receive],
+ [Side.Receive]: state.sideToAssetToken[Side.Deposit],
});
return _.assign({}, state, {
sideToAssetToken: newSideToAssetToken,