From e49bdd9c05b0b27ee63f50aa936338dc77bddae0 Mon Sep 17 00:00:00 2001
From: TrainDoctor <traindoctor@protonmail.com>
Date: Wed, 24 Aug 2022 16:56:20 -0700
Subject: Move conditional check to correct location

---
 frontend/src/components/settings/pages/general/Updater.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'frontend/src/components/settings/pages/general/Updater.tsx')

diff --git a/frontend/src/components/settings/pages/general/Updater.tsx b/frontend/src/components/settings/pages/general/Updater.tsx
index 1e7c35af..edfcf724 100644
--- a/frontend/src/components/settings/pages/general/Updater.tsx
+++ b/frontend/src/components/settings/pages/general/Updater.tsx
@@ -37,9 +37,9 @@ export default function UpdaterSettings() {
         )
       }
     >
-      {updateProgress == -1 ? (
+      {updateProgress == -1 && !isLoaderUpdating ? (
         <DialogButton
-          disabled={!versionInfo?.updatable || checkingForUpdates || isLoaderUpdating}
+          disabled={!versionInfo?.updatable || checkingForUpdates}
           onClick={
             !versionInfo?.remote || versionInfo?.remote?.tag_name == versionInfo?.current
               ? async () => {
@@ -57,7 +57,6 @@ export default function UpdaterSettings() {
                     finish: async () => {
                       setUpdateProgress(0);
                       setReloading(true);
-                      setIsLoaderUpdating(false);
                       await finishUpdate();
                     },
                   };
-- 
cgit v1.2.3

