Prevent server updated info dialog from auto closing

In case the "dialog to inform about available server updates" was disabled, it also prevented the "dialog to inform that the server has been updated" from being visible.
This commit is contained in:
schroda
2024-07-28 22:56:39 +02:00
parent 792bbe4563
commit 81cb78a634

View File

@@ -68,10 +68,6 @@ export const ServerUpdateChecker = () => {
setOpen(true);
}
if (!serverInformAvailableUpdate) {
return null;
}
if (isCheckingForServerUpdate) {
return null;
}
@@ -81,6 +77,10 @@ export const ServerUpdateChecker = () => {
}
if (isServerUpdateAvailable) {
if (!serverInformAvailableUpdate) {
return null;
}
const isAboutPage = window.location.pathname === '/settings/about';
if (isAboutPage) {
return null;