From 81cb78a63425ad0ee70ddefa31215ee210881c7a Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 28 Jul 2024 22:56:39 +0200 Subject: [PATCH] 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. --- src/components/util/ServerUpdateChecker.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/util/ServerUpdateChecker.tsx b/src/components/util/ServerUpdateChecker.tsx index 686fa47f..6fd4d100 100644 --- a/src/components/util/ServerUpdateChecker.tsx +++ b/src/components/util/ServerUpdateChecker.tsx @@ -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;