Skip to content

Commit

Permalink
fix share color and length
Browse files Browse the repository at this point in the history
  • Loading branch information
DreaminDani committed May 6, 2023
1 parent c4ea8d4 commit 0676019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@
guesses.length = 5;
}
let shareText = '';
for (let i = 0; i <= guesses.length; i++) {
for (let i = 0; i < guesses.length; i++) {
if (guesses[i] && guesses[i].id === track.id) {
shareText += '🟩';
} else if (guesses[i] && guesses[i].id.startsWith('skip')) {
shareText += '⬜️';
shareText += '';
} else if (guesses[i] && isArtistMatch(guesses[i])) {
shareText += '🟨';
} else if (guesses[i]) {
Expand Down

0 comments on commit 0676019

Please sign in to comment.