Skip to content

Commit

Permalink
Fix post merge conflicts bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 committed Dec 2, 2024
1 parent 4a0b73d commit 129e0fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/explorable-explanations/src/modules/auctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ auction.draw = (index) => {
const x = props.x();
const y = props.y();

if (window.cancelPromise) {
if (app.cancelPromise) {
return;
}
// eslint-disable-next-line no-await-in-loop
Expand All @@ -501,7 +501,7 @@ auction.draw = (index) => {
callBack(returnValue);
}
if (!app.isRevisitingNodeInInteractiveMode) {
if (window.cancelPromise) {
if (app.cancelPromise) {
return;
}
await utils.delay(delay); // eslint-disable-line no-await-in-loop
Expand Down
10 changes: 6 additions & 4 deletions packages/explorable-explanations/src/modules/bubbles.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bubbles.barrageAnimation = async (index) => {
utils.wipeAndRecreateInterestCanvas();

for (let i = 0; i < positionsOfCircles.length; i++) {
if (window.cancelPromise) {
if (app.cancelPromise) {
resolve();
return;
}
Expand Down Expand Up @@ -175,7 +175,8 @@ bubbles.barrageAnimation = async (index) => {
y > topOfBox &&
y < topOfBox + height
);
})
}) ||
app.cancelPromise
) {
resolve();
} else {
Expand Down Expand Up @@ -277,7 +278,7 @@ bubbles.reverseBarrageAnimation = async (index) => {
utils.wipeAndRecreateInterestCanvas();

for (let i = 0; i < positionsOfCircles.length; i++) {
if (window.cancelPromise) {
if (app.cancelPromise) {
resolve();
return;
}
Expand Down Expand Up @@ -309,7 +310,8 @@ bubbles.reverseBarrageAnimation = async (index) => {
Math.abs(circle.y - circle.target.y) <
app.bubbles.minifiedCircleDiameter / 2
);
})
}) ||
app.cancelPromise
) {
resolve();
document.getElementById('interest-canvas').style.zIndex = 2;
Expand Down

0 comments on commit 129e0fb

Please sign in to comment.