Skip to content

Commit d2e1b35

Browse files
committed
minor
1 parent bf82c49 commit d2e1b35

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

examples/shared-games/src/components/miniapps/FullWordle.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export default function FullWordle() {
107107
{ word: string; colors: TileColor[] }[]
108108
>([]);
109109
const [soloCurrentGuess, setSoloCurrentGuess] = useState("");
110-
const [soloKeyColors, setSoloKeyColors] = useState<
111-
Record<string, TileColor>
112-
>({});
110+
const [soloKeyColors, setSoloKeyColors] = useState<Record<string, TileColor>>(
111+
{},
112+
);
113113

114114
const handleKeyPress = useCallback(
115115
(key: string) => {
@@ -171,7 +171,7 @@ export default function FullWordle() {
171171
soloCurrentGuess,
172172
soloGuesses.length,
173173
soloKeyColors,
174-
]
174+
],
175175
);
176176

177177
const getKeyColor = (key: string): string => {
@@ -290,7 +290,7 @@ export default function FullWordle() {
290290
<Tile key={i} letter="" color="empty" />
291291
))}
292292
</div>
293-
)
293+
),
294294
)}
295295
</>
296296
) : (
@@ -311,9 +311,7 @@ export default function FullWordle() {
311311
<motion.div
312312
key={i}
313313
animate={
314-
soloCurrentGuess[i]
315-
? { scale: [1, 1.1, 1] }
316-
: undefined
314+
soloCurrentGuess[i] ? { scale: [1, 1.1, 1] } : undefined
317315
}
318316
transition={{ duration: 0.1 }}
319317
>
@@ -328,7 +326,7 @@ export default function FullWordle() {
328326

329327
{/* Empty rows (solo) */}
330328
{Array.from({
331-
length: Math.max(0, soloEmptyCount - 1),
329+
length: Math.max(0, soloEmptyCount),
332330
}).map((_, rowIdx) => (
333331
<div key={`solo-empty-${rowIdx}`} className="flex gap-1.5">
334332
{Array.from({ length: 5 }).map((_, i) => (

0 commit comments

Comments
 (0)