diff --git a/packages/client/src/components/Log/index.jsx b/packages/client/src/components/Log/index.jsx
index 269c76d4..4a316c47 100644
--- a/packages/client/src/components/Log/index.jsx
+++ b/packages/client/src/components/Log/index.jsx
@@ -26,10 +26,11 @@ const Log = () => {
}
setLogs([...logs]);
}
- eventEmitter?.on('log', addLogCb);
- return () => {
- eventEmitter?.off('log', addLogCb);
- };
+ try {
+ eventEmitter?.on('log', addLogCb);
+ } catch (error) {
+ console.log('eventEmitter.on error', error);
+ }
}, []);
return (
diff --git a/packages/client/src/pages/game/index.tsx b/packages/client/src/pages/game/index.tsx
index cb53e399..70816508 100644
--- a/packages/client/src/pages/game/index.tsx
+++ b/packages/client/src/pages/game/index.tsx
@@ -487,7 +487,9 @@ const Game = () => {
: