Skip to content

Commit

Permalink
watch currentView to check sv
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Nov 8, 2023
1 parent 9c5c94f commit 97bad31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/components/SupportedVersionDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -60,6 +61,7 @@ export const SupportedVersionDialog: FC = () => {
},
});

console.log('supported.message', supported);
if (!supported.message || !supported.expiration) return;

if (
Expand All @@ -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();
Expand Down

0 comments on commit 97bad31

Please sign in to comment.