diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-24 08:32:32 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-24 08:32:32 +0800 |
commit | df7a1bd8de064852f30b75feee0b68618c0be7c2 (patch) | |
tree | ce0d3d7726bede484d637883f4f9e908512fb731 /packages/instant | |
parent | 657ae0cf5732d2ad3bb23ed4270ee20ec9b0f131 (diff) | |
download | dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar.gz dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar.bz2 dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar.lz dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar.xz dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.tar.zst dexon-sol-tools-df7a1bd8de064852f30b75feee0b68618c0be7c2.zip |
rename action to resetAmount
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/redux/actions.ts | 4 | ||||
-rw-r--r-- | packages/instant/src/redux/reducer.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts index bdb53a395..f5946d707 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 = { @@ -46,5 +46,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 260039e3d..ddcb144b1 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, |