diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 02:09:23 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 02:09:23 +0800 |
commit | 4b348e1e603ec45e1e4bf39533b4b204423cafa0 (patch) | |
tree | c9fa2d22f44f720a918a53e0cefcec4a00a362f6 /packages/instant/src/redux/reducer.ts | |
parent | 857eb95ac0f8299fe517321cb805a836232222bc (diff) | |
download | dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.gz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.bz2 dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.lz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.xz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.zst dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.zip |
quoteState -> quoteRequestState
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r-- | packages/instant/src/redux/reducer.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts index 05aa37420..d2256ef54 100644 --- a/packages/instant/src/redux/reducer.ts +++ b/packages/instant/src/redux/reducer.ts @@ -17,7 +17,7 @@ export interface State { buyOrderState: AsyncProcessState; ethUsdPrice?: BigNumber; latestBuyQuote?: BuyQuote; - quoteState: AsyncProcessState; + quoteRequestState: AsyncProcessState; latestError?: any; latestErrorDisplay: LatestErrorDisplay; } @@ -31,7 +31,7 @@ export const INITIAL_STATE: State = { latestBuyQuote: undefined, latestError: undefined, latestErrorDisplay: LatestErrorDisplay.Hidden, - quoteState: AsyncProcessState.NONE, + quoteRequestState: AsyncProcessState.NONE, }; export const reducer = (state: State = INITIAL_STATE, action: Action): State => { @@ -50,19 +50,19 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State => return { ...state, latestBuyQuote: action.data, - quoteState: AsyncProcessState.SUCCESS, + quoteRequestState: AsyncProcessState.SUCCESS, }; case ActionTypes.UPDATE_BUY_QUOTE_STATE_PENDING: return { ...state, latestBuyQuote: undefined, - quoteState: AsyncProcessState.PENDING, + quoteRequestState: AsyncProcessState.PENDING, }; case ActionTypes.UPDATE_BUY_QUOTE_STATE_FAILURE: return { ...state, latestBuyQuote: undefined, - quoteState: AsyncProcessState.FAILURE, + quoteRequestState: AsyncProcessState.FAILURE, }; case ActionTypes.UPDATE_SELECTED_ASSET_BUY_STATE: return { |