Skip to content

Commit

Permalink
Fix Bug: Falling star animation after capturing radiance
Browse files Browse the repository at this point in the history
  • Loading branch information
AguzzTN54 committed Sep 1, 2024
1 parent ea1b469 commit 18ebb8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/routes/_wish/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,9 @@
single = stars.length === 1;
meteorStar = 3;
if (stars.includes(4)) meteorStar = 4;
if (stars.includes(5)) {
const captureStatus = result.map(({ captured = false }) => captured);
radiance = captureStatus.includes(true);
meteorStar = 5;
}
if (stars.includes(5)) meteorStar = 5;
const captureStatus = result.map(({ captured = false }) => captured);
radiance = captureStatus.includes(true);
showMeteor = true;
};
Expand Down

0 comments on commit 18ebb8f

Please sign in to comment.