From 175ddca375cef765cec8ca5bbc527a205c40bf25 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Tue, 3 Jun 2025 15:41:31 +0700
Subject: preeeeettty much done FUCK YES

---
 src/pages/tones.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/pages/tones.tsx')

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
-- 
cgit v1.2.3

