From 5bb82863010197193455b538915a7416517bff2d Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 21 Mar 2024 11:05:38 -0700 Subject: [PATCH] Add back notification for FCM. --- client/src/components/chat-affix/chat-affix.container.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {