aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/reducer.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:50:21 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 07:50:21 +0800
commit6ea386a7af89c1b8a4df94b656ae1772c29c1401 (patch)
tree15cb95a68012f0be905bc0964c7705a2fbdf02c0 /packages/instant/src/redux/reducer.ts
parent1d38b75d6f599b37c14bf06bf95811e4f6bafb54 (diff)
downloaddexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar.gz
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar.bz2
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar.lz
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar.xz
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.tar.zst
dexon-sol-tools-6ea386a7af89c1b8a4df94b656ae1772c29c1401.zip
selectedAssetBuyState -> buyOrderState
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r--packages/instant/src/redux/reducer.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index ed8d0f6cf..54290483b 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -14,7 +14,7 @@ export enum LatestErrorDisplay {
export interface State {
selectedAssetData?: string;
selectedAssetAmount?: BigNumber;
- selectedAssetBuyState: AsyncProcessState; // TODO: rename buyOrderState
+ buyOrderState: AsyncProcessState;
ethUsdPrice?: BigNumber;
latestBuyQuote?: BuyQuote;
quoteState: AsyncProcessState;
@@ -26,7 +26,7 @@ export const INITIAL_STATE: State = {
// TODO: Remove hardcoded zrxAssetData
selectedAssetData: zrxAssetData,
selectedAssetAmount: undefined,
- selectedAssetBuyState: AsyncProcessState.NONE,
+ buyOrderState: AsyncProcessState.NONE,
ethUsdPrice: undefined,
latestBuyQuote: undefined,
latestError: undefined,
@@ -67,7 +67,7 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State =>
case ActionTypes.UPDATE_SELECTED_ASSET_BUY_STATE:
return {
...state,
- selectedAssetBuyState: action.data,
+ buyOrderState: action.data,
};
case ActionTypes.SET_ERROR:
return {