From 8677691da3ed6e1442d3c70d25e705da5e5d4da6 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 22:54:58 +0100 Subject: [PATCH] Enhance isInstallComplete function in AppUpdateProgress to recognize additional completion messages, including 'successful' and 'restarting', improving accuracy of installation status detection during updates. --- .../Management/AppUpdates/AppUpdateProgress.jsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx b/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx index 170c546..06571b4 100644 --- a/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx +++ b/src/components/Dashboard/Management/AppUpdates/AppUpdateProgress.jsx @@ -72,11 +72,17 @@ const getDownloadStageStatus = (phase, isError) => { return 'pending' } -const isInstallComplete = (phase, message) => - phase === 'installing' && - String(message || '') - .toLowerCase() - .includes('complete') +const isInstallComplete = (phase, message) => { + if (phase !== 'installing') return false + + const normalized = String(message || '').toLowerCase() + + return ( + normalized.includes('complete') || + normalized.includes('successful') || + normalized.includes('restarting') + ) +} const getInstallStageStatus = (phase, isError, message) => { if (isError && ['downloaded', 'installing'].includes(phase)) return 'error'