summaryrefslogtreecommitdiff
path: root/src/pages/tones.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-08-17 02:20:42 +0700
committerpolwex <polwex@sortug.com>2025-08-17 02:20:42 +0700
commit9be51e192fca8901d47328875d9e0c690d4b2b99 (patch)
tree926151e075c539019c5eb65e2140678acb383c5f /src/pages/tones.tsx
parentc505750ab36f8164256a91830fc83a807a9d6984 (diff)
this was me. local LLM!HEADmaster
Diffstat (limited to 'src/pages/tones.tsx')
-rw-r--r--src/pages/tones.tsx4
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} />;
}