Skip to content

Commit

Permalink
Update the "lastRunningState" in case update was triggered outside of…
Browse files Browse the repository at this point in the history
… app (#478)
  • Loading branch information
schroda authored Nov 25, 2023
1 parent 47b077c commit c6cc7c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/library/UpdateChecker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export function UpdateChecker({ handleFinishedUpdate }: { handleFinishedUpdate?:
);

useEffect(() => {
if (!lastRunningState && status?.isRunning) {
lastRunningState = true;
}

const isUpdateFinished = lastRunningState && progress === 100;
if (!isUpdateFinished) {
return;
Expand Down

0 comments on commit c6cc7c1

Please sign in to comment.