-
-
New word in
-
-
-
+ {(isGameLost || isGameWon) && (
+
+
+
New word in
+
- }
+
+
+ )}
)
}
diff --git a/src/constants/strings.ts b/src/constants/strings.ts
index 7414730..13411b6 100644
--- a/src/constants/strings.ts
+++ b/src/constants/strings.ts
@@ -1 +1 @@
-export const WIN_MESSAGES = ["Great Job!", "Awesome", "Well done!"];
+export const WIN_MESSAGES = ['Great Job!', 'Awesome', 'Well done!']
diff --git a/src/lib/share.ts b/src/lib/share.ts
index 9d55706..7e7b6ee 100644
--- a/src/lib/share.ts
+++ b/src/lib/share.ts
@@ -3,7 +3,7 @@ import { solutionIndex } from './words'
export const shareStatus = (guesses: string[], lost: boolean) => {
navigator.clipboard.writeText(
- `Not Wordle ${solutionIndex} ${lost?"X":guesses.length}/6\n\n` +
+ `Not Wordle ${solutionIndex} ${lost ? 'X' : guesses.length}/6\n\n` +
generateEmojiGrid(guesses)
)
}
diff --git a/src/lib/words.ts b/src/lib/words.ts
index ba8122b..140f0c9 100644
--- a/src/lib/words.ts
+++ b/src/lib/words.ts
@@ -18,7 +18,7 @@ export const getWordOfDay = () => {
const now = Date.now()
const msInDay = 86400000
const index = Math.floor((now - epochMs) / msInDay)
- const nextday = (index+1)*msInDay + epochMs;
+ const nextday = (index + 1) * msInDay + epochMs
return {
solution: WORDS[index].toUpperCase(),