diff options
author | polwex <polwex@sortug.com> | 2025-08-17 02:20:42 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-08-17 02:20:42 +0700 |
commit | 9be51e192fca8901d47328875d9e0c690d4b2b99 (patch) | |
tree | 926151e075c539019c5eb65e2140678acb383c5f /src/pages | |
parent | c505750ab36f8164256a91830fc83a807a9d6984 (diff) |
Diffstat (limited to 'src/pages')
-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} />; } |