Skip to content

Commit

Permalink
Update useLanding.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Jun 3, 2024
1 parent 3c9cdad commit d6399a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/pages/Landing/useLanding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const useLanding = () => {
setStatusText(`${appLang?.status?.disconnected}`);
}
});
}, [isConnected, isLoading, ipInfo]);
}, [isConnected, isLoading, ipInfo, proxyStatus]);

useEffect(() => {
if (online) {
Expand Down Expand Up @@ -292,7 +292,6 @@ const useLanding = () => {
if (!online) {
checkInternetToast();
} else {
setProxyStatus(proxyMode);
if (isLoading) {
ipcRenderer.sendMessage('wp-end');
} else if (isConnected) {
Expand All @@ -303,6 +302,7 @@ const useLanding = () => {
countryCode: false,
ip: ''
});
setProxyStatus(proxyMode);
ipcRenderer.sendMessage('wp-start');
setIsLoading(true);
setPing(0);
Expand Down

0 comments on commit d6399a9

Please sign in to comment.