diff --git a/packages/console-app/src/components/BotLogs.tsx b/packages/console-app/src/components/BotLogs.tsx index 77a9ca2d..3edc1405 100644 --- a/packages/console-app/src/components/BotLogs.tsx +++ b/packages/console-app/src/components/BotLogs.tsx @@ -38,7 +38,7 @@ export const BotLogs = ({ }, () => { setLogs(logs => [...logs, 'Stream ended.']); }); - () => stream.close(); + return () => stream.close(); }, []); return (