Skip to content

Commit 3f87dc6

Browse files
committed
fix: keep update UI pending until reload
1 parent a6e1266 commit 3f87dc6

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/app/features/settings/about/About.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,6 @@ export function About({ requestBack, requestClose }: Readonly<AboutProps>) {
235235
setUpdateStatusMessage(
236236
error instanceof Error ? error.message : 'Failed to apply the update.'
237237
);
238-
}
239-
} finally {
240-
if (isMountedRef.current) {
241238
isApplyingUpdateRef.current = false;
242239
setIsApplyingUpdate(false);
243240
}

src/app/pages/client/ClientRoot.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,6 @@ export function ClientRoot({ children }: ClientRootProps) {
541541
.then(() => {
542542
if (!isMountedRef.current) return;
543543
setSwUpdateError(undefined);
544-
isApplyingSwUpdateRef.current = false;
545-
setIsApplyingSwUpdate(false);
546544
})
547545
.catch((error) => {
548546
if (!isMountedRef.current) return;

0 commit comments

Comments
 (0)