aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 23:46:58 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 23:46:58 +0800
commit38f47a380b663df0a3f817100650e222dd7582e0 (patch)
tree23348daa23207b840b93335bfb823d451053ab53 /packages/instant/src/redux
parent4c4286ac662d3dba928bf16b83ade5e5476f4614 (diff)
parent8635f8d7325d472dd7d4fac26f1a87bee17edd1a (diff)
downloaddexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar.gz
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar.bz2
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar.lz
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar.xz
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.tar.zst
dexon-sol-tools-38f47a380b663df0a3f817100650e222dd7582e0.zip
Merge branch 'development' into feature/instant/processing-state
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r--packages/instant/src/redux/actions.ts4
-rw-r--r--packages/instant/src/redux/reducer.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts
index 1360634d7..9c084ab3c 100644
--- a/packages/instant/src/redux/actions.ts
+++ b/packages/instant/src/redux/actions.ts
@@ -31,7 +31,7 @@ export enum ActionTypes {
SET_ERROR = 'SET_ERROR',
HIDE_ERROR = 'HIDE_ERROR',
CLEAR_ERROR = 'CLEAR_ERROR',
- CLEAR_BUY_QUOTE_AND_SELECTED_ASSET_AMOUNT = 'CLEAR_BUY_QUOTE_AND_SELECTED_ASSET_AMOUNT',
+ RESET_AMOUNT = 'RESET_AMOUNT',
}
export const actions = {
@@ -45,5 +45,5 @@ export const actions = {
setError: (error?: any) => createAction(ActionTypes.SET_ERROR, error),
hideError: () => createAction(ActionTypes.HIDE_ERROR),
clearError: () => createAction(ActionTypes.CLEAR_ERROR),
- clearBuyQuoteAndSelectedAssetAmount: () => createAction(ActionTypes.CLEAR_BUY_QUOTE_AND_SELECTED_ASSET_AMOUNT),
+ resetAmount: () => createAction(ActionTypes.RESET_AMOUNT),
};
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index 1aedcbcc4..c6a05ac52 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -101,7 +101,7 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State =>
...state,
selectedAsset: newSelectedAsset,
};
- case ActionTypes.CLEAR_BUY_QUOTE_AND_SELECTED_ASSET_AMOUNT:
+ case ActionTypes.RESET_AMOUNT:
return {
...state,
latestBuyQuote: undefined,