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

Commit c5dc584

Browse files
committed
Beestje bij de naam noemen
1 parent 08655b5 commit c5dc584

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/botPage/bot/TradeEngine/Proposal.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default Engine =>
7474

7575
if (
7676
this.data.proposals.findIndex(p => p.id === proposal.id) === -1 &&
77-
!this.data.forgetProposals.includes(proposal.id)
77+
!this.data.forgetProposalIds.includes(proposal.id)
7878
) {
7979
// Add proposals based on the ID returned by the API.
8080
this.data.proposals.push({ ...proposal, ...passthrough });
@@ -85,15 +85,15 @@ export default Engine =>
8585
unsubscribeProposals() {
8686
const { proposals } = this.data;
8787
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);
8989
};
9090

9191
this.clearProposals();
9292

9393
return Promise.all(
9494
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);
9797
}
9898

9999
if (proposal.error) {

src/botPage/bot/TradeEngine/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export default class TradeEngine extends Balance(Purchase(Sell(OpenContract(Prop
7070
this.$scope = $scope;
7171
this.observe();
7272
this.data = {
73-
contract : {},
74-
proposals : [],
75-
forgetProposals: [],
73+
contract : {},
74+
proposals : [],
75+
forgetProposalIds: [],
7676
};
7777
this.store = createStore(rootReducer, applyMiddleware(thunk));
7878
}

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