Ignore available webUI update in case auto update is enabled

The available update info is only supposed to be shown in case the auto update is disabled, but instead, it was only shown in case auto update was enabled
This commit is contained in:
schroda
2024-05-07 00:28:33 +02:00
parent 4d04b9cecd
commit 819d9bad66

View File

@@ -110,7 +110,7 @@ export const WebUIUpdateChecker = () => {
}, [webUIUpdateState]);
const isUpdateAvailable =
isAutoUpdateEnabled && updateChecker.handleUpdate && webUIUpdateData?.checkForWebUIUpdate.updateAvailable;
!isAutoUpdateEnabled && updateChecker.handleUpdate && webUIUpdateData?.checkForWebUIUpdate.updateAvailable;
if (isUpdateAvailable) {
const isUpdateInProgress = webUIUpdateState === UpdateState.Downloading;