From 8bd3d4cfcf741942bb4c46d65048313ce3f40bd0 Mon Sep 17 00:00:00 2001
From: Siyuan
Date: Fri, 7 Nov 2025 16:31:44 +0000
Subject: [PATCH] fix: undefined custom update versions
---
ui/src/routes/devices.$id.settings.general.update.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ui/src/routes/devices.$id.settings.general.update.tsx b/ui/src/routes/devices.$id.settings.general.update.tsx
index 82be6b9b..ea2dde49 100644
--- a/ui/src/routes/devices.$id.settings.general.update.tsx
+++ b/ui/src/routes/devices.$id.settings.general.update.tsx
@@ -22,8 +22,8 @@ export default function SettingsGeneralUpdateRoute() {
const { setModalView, otaState } = useUpdateStore();
const { send } = useJsonRpc();
- const customAppVersion = useMemo(() => searchParams.get("custom_app_version") || "", [searchParams]);
- const customSystemVersion = useMemo(() => searchParams.get("custom_system_version") || "", [searchParams]);
+ const customAppVersion = useMemo(() => searchParams.get("custom_app_version") || undefined, [searchParams]);
+ const customSystemVersion = useMemo(() => searchParams.get("custom_system_version") || undefined, [searchParams]);
const resetConfig = useMemo(() => searchParams.get("reset_config") === "true", [searchParams]);
const onClose = useCallback(async () => {
@@ -459,7 +459,7 @@ function UpdateAvailableState({
{m.general_update_available_title()}
- {forceCustomUpdate ? m.general_update_downgrade_available_description() : m.general_update_available_description()}
+ {m.general_update_available_description()}
{(forceCustomUpdate ? versionInfo?.systemDowngradeAvailable : versionInfo?.systemUpdateAvailable) ? (
@@ -475,7 +475,7 @@ function UpdateAvailableState({
) : null}
-
+