diff --git a/client/src/components/chat-affix/chat-affix.container.jsx b/client/src/components/chat-affix/chat-affix.container.jsx index 0ce09211e..772dfb2b1 100644 --- a/client/src/components/chat-affix/chat-affix.container.jsx +++ b/client/src/components/chat-affix/chat-affix.container.jsx @@ -12,6 +12,7 @@ import "./chat-affix.styles.scss"; export function ChatAffixContainer({bodyshop, chatVisible}) { const {t} = useTranslation(); const client = useApolloClient(); + c useEffect(() => { if (!bodyshop || !bodyshop.messagingservicesid) return; @@ -62,7 +63,7 @@ export function ChatAffixContainer({bodyshop, chatVisible}) { SubscribeToTopic(); // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [bodyshop]); useEffect(() => { function handleMessage(payload) {