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}