Show webUI version updated info for first detected update

In case the webUI has never been updated yet, the info dialog was not opened after an update.
This was caused due to the current version always being undefined, since it was never written to the local storage
This commit is contained in:
schroda
2024-09-01 00:56:15 +02:00
parent b7624a33a5
commit 74113d4b7f

View File

@@ -69,6 +69,11 @@ export const WebUIUpdateChecker = () => {
const newVersion = aboutWebUI?.tag;
const isSameAsCurrent = !newVersion || !webUIVersion || webUIVersion === newVersion;
const saveInitialVersion = !webUIVersion && !!newVersion;
if (saveInitialVersion) {
setWebUIVersion(newVersion);
}
if (!isSameAsCurrent && !open) {
setOpen(true);
}