From 0cc84f0c54e06947eb7883e18e968acecf84340a Mon Sep 17 00:00:00 2001 From: Siyuan Date: Mon, 10 Nov 2025 13:48:23 +0000 Subject: [PATCH] fix(ui): shouldn't pass custom version to onConfirmCustomUpdate if not available --- ui/src/routes/devices.$id.settings.general.update.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.general.update.tsx b/ui/src/routes/devices.$id.settings.general.update.tsx index effcf6d9..fb5be055 100644 --- a/ui/src/routes/devices.$id.settings.general.update.tsx +++ b/ui/src/routes/devices.$id.settings.general.update.tsx @@ -101,10 +101,9 @@ export function Dialog({ const { modalView, setModalView, otaState } = useUpdateStore(); const forceCustomUpdate = customSystemVersion !== undefined || customAppVersion !== undefined; const onConfirmCustomUpdate = useCallback(() => { - console.debug("onConfirmCustomUpdate", customAppVersion, customSystemVersion, versionInfo); onConfirmCustomUpdateCallback( - customAppVersion !== undefined ? customAppVersion : versionInfo?.remote?.appVersion, - customSystemVersion !== undefined ? customSystemVersion : versionInfo?.remote?.systemVersion, + customAppVersion !== undefined ? versionInfo?.remote?.appVersion : undefined, + customSystemVersion !== undefined ? versionInfo?.remote?.systemVersion : undefined, ); }, [onConfirmCustomUpdateCallback, customAppVersion, customSystemVersion, versionInfo]);