From 178002678e4de70722df6dc9f2daac227b4732f5 Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Sat, 15 Nov 2025 17:15:17 -0800 Subject: [PATCH] chore: fix ribbit cross-sync --- client-src/routes/index.tsx | 5 +++++ client-src/views/room/UserToolbar.tsx | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client-src/routes/index.tsx b/client-src/routes/index.tsx index 01c9b33..14a5e50 100644 --- a/client-src/routes/index.tsx +++ b/client-src/routes/index.tsx @@ -50,6 +50,11 @@ function Index() { setFrog(FROG_MAP[data.frog]!); break; } + case "ribbit_sent": { + const audio = new Audio("/ribbit.mp3"); + audio.play().catch((err) => console.error("Failed to play ribbit:", err)); + break; + } } } diff --git a/client-src/views/room/UserToolbar.tsx b/client-src/views/room/UserToolbar.tsx index ab2e65f..635b909 100644 --- a/client-src/views/room/UserToolbar.tsx +++ b/client-src/views/room/UserToolbar.tsx @@ -22,12 +22,10 @@ export default function UserToolbar({ setHat, }: UserToolbarProps) { const [name, setName] = useState("frogboi"); - const ribbitRef = useRef(null); const customizeDialogRef = useRef(null); return ( <> -