From a713141420a39ae267c2575a31f2daf56561f903 Mon Sep 17 00:00:00 2001 From: Litruv Date: Sun, 22 Feb 2026 01:19:56 +1100 Subject: [PATCH] fix: handle error response during update check in UpdateNotification component --- .../update-notification/UpdateNotification.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/components/update-notification/UpdateNotification.tsx b/src/app/components/update-notification/UpdateNotification.tsx index c790f63..42c8a45 100644 --- a/src/app/components/update-notification/UpdateNotification.tsx +++ b/src/app/components/update-notification/UpdateNotification.tsx @@ -61,7 +61,15 @@ export function UpdateNotification() { try { const result = await (window as any).electron.updater.checkForUpdates(); console.log('Update check result:', result); - // If no update found, show feedback + + // Handle error response (including dev mode error) + if (!result.success) { + console.warn('Update check failed:', result.error); + setChecking(false); + return; + } + + // If no update found, show feedback briefly setTimeout(() => { if (!updateAvailable) { setChecking(false);