aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Chat.js')
-rw-r--r--vnext/src/ui/Chat.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js
index f7113aaa..2a3e90de 100644
--- a/vnext/src/ui/Chat.js
+++ b/vnext/src/ui/Chat.js
@@ -36,7 +36,7 @@ export default function Chat(props) {
setChats(response.data);
}).catch(console.log);
}
- }, []);
+ }, [visitor]);
let onMessage = useCallback((json) => {
const msg = JSON.parse(json.data);