aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/reducer.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-02 04:10:51 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-02 04:10:51 +0800
commitb55ba3a31823699fa2460fad6fd22b913c38c946 (patch)
treea3ce34b73187518f106894f9eeb35d6a56f065cf /packages/instant/src/redux/reducer.ts
parent3f918622bcce21ba104e0f13e71247796345ab0f (diff)
downloaddexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.gz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.bz2
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.lz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.xz
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.zst
dexon-sol-tools-b55ba3a31823699fa2460fad6fd22b913c38c946.zip
feat: add states to the erc20 input for no assets or only 1 asset
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r--packages/instant/src/redux/reducer.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index 57d95167a..20d927561 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -23,7 +23,7 @@ export interface State {
assetBuyer?: AssetBuyer;
assetMetaDataMap: ObjectMap<AssetMetaData>;
selectedAsset?: Asset;
- availableAssets: Asset[];
+ availableAssets?: Asset[];
selectedAssetAmount?: BigNumberInput;
buyOrderState: OrderState;
ethUsdPrice?: BigNumber;
@@ -36,7 +36,7 @@ export interface State {
export const INITIAL_STATE: State = {
network: Network.Mainnet,
selectedAssetAmount: undefined,
- availableAssets: [],
+ availableAssets: undefined,
assetMetaDataMap,
buyOrderState: { processState: OrderProcessState.NONE },
ethUsdPrice: undefined,