diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-25 04:16:28 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-25 04:24:35 +0800 |
commit | db3ad83ebca88e0faf2529ec468044e6ce4d5746 (patch) | |
tree | 3929a5f13c59e428644162669a93902effa5f051 /packages/instant/src/redux | |
parent | 979527a5ee3efaf2974703b91b0af3440195219e (diff) | |
download | dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar.gz dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar.bz2 dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar.lz dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar.xz dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.tar.zst dexon-sol-tools-db3ad83ebca88e0faf2529ec468044e6ce4d5746.zip |
Introduce new OrderProcessState
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/reducer.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts index c6a05ac52..25d0092b2 100644 --- a/packages/instant/src/redux/reducer.ts +++ b/packages/instant/src/redux/reducer.ts @@ -4,7 +4,15 @@ import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; import { assetMetaDataMap } from '../data/asset_meta_data_map'; -import { Asset, AssetMetaData, AsyncProcessState, DisplayStatus, Network, OrderState } from '../types'; +import { + Asset, + AssetMetaData, + AsyncProcessState, + DisplayStatus, + Network, + OrderProcessState, + OrderState, +} from '../types'; import { assetUtils } from '../util/asset'; import { Action, ActionTypes } from './actions'; @@ -27,7 +35,7 @@ export const INITIAL_STATE: State = { network: Network.Mainnet, selectedAssetAmount: undefined, assetMetaDataMap, - buyOrderState: { processState: AsyncProcessState.NONE }, + buyOrderState: { processState: OrderProcessState.NONE }, ethUsdPrice: undefined, latestBuyQuote: undefined, latestError: undefined, @@ -106,7 +114,7 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State => ...state, latestBuyQuote: undefined, quoteRequestState: AsyncProcessState.NONE, - buyOrderState: { processState: AsyncProcessState.NONE }, + buyOrderState: { processState: OrderProcessState.NONE }, selectedAssetAmount: undefined, }; default: |