This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/botPage/bot/TradeEngine Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export default Engine =>
74
74
75
75
if (
76
76
this . data . proposals . findIndex ( p => p . id === proposal . id ) === - 1 &&
77
- ! this . data . forgetProposals . includes ( proposal . id )
77
+ ! this . data . forgetProposalIds . includes ( proposal . id )
78
78
) {
79
79
// Add proposals based on the ID returned by the API.
80
80
this . data . proposals . push ( { ...proposal , ...passthrough } ) ;
@@ -85,15 +85,15 @@ export default Engine =>
85
85
unsubscribeProposals ( ) {
86
86
const { proposals } = this . data ;
87
87
const removeForgetProposalById = forgetProposalId => {
88
- this . data . forgetProposals = this . data . forgetProposals . filter ( id => id !== forgetProposalId ) ;
88
+ this . data . forgetProposalIds = this . data . forgetProposalIds . filter ( id => id !== forgetProposalId ) ;
89
89
} ;
90
90
91
91
this . clearProposals ( ) ;
92
92
93
93
return Promise . all (
94
94
proposals . map ( proposal => {
95
- if ( ! this . data . forgetProposals . includes ( proposal . id ) ) {
96
- this . data . forgetProposals . push ( proposal . id ) ;
95
+ if ( ! this . data . forgetProposalIds . includes ( proposal . id ) ) {
96
+ this . data . forgetProposalIds . push ( proposal . id ) ;
97
97
}
98
98
99
99
if ( proposal . error ) {
Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ export default class TradeEngine extends Balance(Purchase(Sell(OpenContract(Prop
70
70
this . $scope = $scope ;
71
71
this . observe ( ) ;
72
72
this . data = {
73
- contract : { } ,
74
- proposals : [ ] ,
75
- forgetProposals : [ ] ,
73
+ contract : { } ,
74
+ proposals : [ ] ,
75
+ forgetProposalIds : [ ] ,
76
76
} ;
77
77
this . store = createStore ( rootReducer , applyMiddleware ( thunk ) ) ;
78
78
}
You can’t perform that action at this time.
0 commit comments