summaryrefslogtreecommitdiff
path: root/src/pages/tones.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/tones.tsx')
-rw-r--r--src/pages/tones.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/tones.tsx b/src/pages/tones.tsx
index 96ed56c..732ebd1 100644
--- a/src/pages/tones.tsx
+++ b/src/pages/tones.tsx
@@ -12,9 +12,9 @@ export const getConfig = async () => {
// Function to fetch the initial word on the server
async function InitialWordLoader() {
// Fetch a random 1-syllable Thai word with any tone initially
- const initialWord = await fetchWordsByToneAndSyllables(["rising", "mid"]);
- console.log({ initialWord });
- return <ToneSelectorClient initialWord={initialWord} />;
+ const tones = ["falling", "falling"];
+ const initialWords = await fetchWordsByToneAndSyllables(tones);
+ return <ToneSelectorClient initialData={initialWords} initialTones={tones} />;
}
// Loading fallback component