From 97bad31422cba83f1b961981064cfef2a29e0c97 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Wed, 8 Nov 2023 07:32:23 -0300 Subject: [PATCH] watch currentView to check sv --- src/ui/components/SupportedVersionDialog/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/components/SupportedVersionDialog/index.tsx b/src/ui/components/SupportedVersionDialog/index.tsx index b94269659..84f22e2a5 100644 --- a/src/ui/components/SupportedVersionDialog/index.tsx +++ b/src/ui/components/SupportedVersionDialog/index.tsx @@ -18,6 +18,7 @@ import { SUPPORTED_VERSION_DIALOG_DISMISS, WEBVIEW_SERVER_IS_SUPPORTED_VERSION, } from '../../actions'; +import { currentView } from '../../reducers/currentView'; import { Dialog } from '../Dialog'; import ModalBackdrop from '../Modal/ModalBackdrop'; import { useServers } from '../hooks/useServers'; @@ -60,6 +61,7 @@ export const SupportedVersionDialog: FC = () => { }, }); + console.log('supported.message', supported); if (!supported.message || !supported.expiration) return; if ( @@ -86,8 +88,9 @@ export const SupportedVersionDialog: FC = () => { useEffect(() => { checkServerVersion(); + console.log('checkServerVersion'); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [server?.supportedVersions, server?.lastPath]); + }, [server?.supportedVersions, server?.lastPath, currentView]); const handleMoreInfoButtonClick = (): void => { dismissTimeUpdate();