diff --git a/src/MancalaApp.tsx b/src/MancalaApp.tsx index 450acf0..ba62f58 100644 --- a/src/MancalaApp.tsx +++ b/src/MancalaApp.tsx @@ -54,7 +54,7 @@ const MancalaApp: FunctionComponent = () => { connectToServer(); return () => { context.rtmt.dispose(); - context.themeManager.on("themechange", onThemeChange); + context.themeManager.off("themechange", onThemeChange); }; }, []);