Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 34925a0

Browse files
committed
Remove Map dependency, use JS arrays/objects
1 parent 00d32c5 commit 34925a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/botPage/bot/TradeEngine/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Map } from 'immutable';
21
import { createStore, applyMiddleware } from 'redux';
32
import thunk from 'redux-thunk';
43
import { durationToSecond } from '../../../common/utils/tools';
@@ -70,7 +69,11 @@ export default class TradeEngine extends Balance(Purchase(Sell(OpenContract(Prop
7069
this.observer = $scope.observer;
7170
this.$scope = $scope;
7271
this.observe();
73-
this.data = new Map();
72+
this.data = {
73+
contract : {},
74+
proposals : [],
75+
forgetProposals: [],
76+
};
7477
this.store = createStore(rootReducer, applyMiddleware(thunk));
7578
}
7679
init(...args) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy