diff options
Diffstat (limited to 'src/pages/tones.tsx')
-rw-r--r-- | src/pages/tones.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/tones.tsx b/src/pages/tones.tsx index 20c1237..066f3cb 100644 --- a/src/pages/tones.tsx +++ b/src/pages/tones.tsx @@ -20,13 +20,13 @@ async function randomTones(tries = 0) { console.log({ tones, toneStrings }); const initialWords = await fetchWordsByToneAndSyllables(tones); if (!initialWords || initialWords.length === 0) return randomTones(tries + 1); - else return {initialWords, tones}; + else return { initialWords, tones }; } // Function to fetch the initial word on the server async function InitialWordLoader() { // Fetch a random 1-syllable Thai word with any tone initially - const {initialWords, tones]} = await randomTones(); + const { initialWords, tones } = await randomTones(); return <ToneSelectorClient initialData={initialWords} initialTones={tones} />; } |