mirror of
https://github.com/SoPat712/maisie-heardle.git
synced 2025-08-21 18:28:45 -04:00
Text changes, don't play on submit
This commit is contained in:
@@ -328,7 +328,11 @@
|
|||||||
if (selectedTrack.title.toLowerCase() === ans) {
|
if (selectedTrack.title.toLowerCase() === ans) {
|
||||||
attemptInfos = [...attemptInfos, { status: 'correct', title: currentTrack.title }];
|
attemptInfos = [...attemptInfos, { status: 'correct', title: currentTrack.title }];
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
message = `✅ Correct! It was “${currentTrack.title}.” You got it in ${attemptCount} ${attemptCount === 1 ? 'try' : 'tries'}.`;
|
message = `✅ Correct! It was ${currentTrack.title}. You got it ${
|
||||||
|
attemptCount === maxAttempts
|
||||||
|
? 'on the last try! Close one!'
|
||||||
|
: `in ${attemptCount} ${attemptCount === 1 ? 'try' : 'tries'}.`
|
||||||
|
}`;
|
||||||
widget.pause();
|
widget.pause();
|
||||||
} else {
|
} else {
|
||||||
attemptInfos = [...attemptInfos, { status: 'wrong', title: selectedTrack.title }];
|
attemptInfos = [...attemptInfos, { status: 'wrong', title: selectedTrack.title }];
|
||||||
@@ -603,7 +607,7 @@
|
|||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
submitGuess();
|
submitGuess();
|
||||||
togglePlayPause();
|
// togglePlayPause();
|
||||||
}}
|
}}
|
||||||
class="rounded px-4 py-2 font-semibold"
|
class="rounded px-4 py-2 font-semibold"
|
||||||
style="background:{COLORS.secondary};color:{COLORS.background}"
|
style="background:{COLORS.secondary};color:{COLORS.background}"
|
||||||
|
Reference in New Issue
Block a user