From dba49f035b5dd0259c3fc3fa2da4aadd3bb9985b Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Thu, 23 Jan 2025 19:55:32 -0500
Subject: updated readme

---
 src/index.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index 6992b23..b20bf59 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -174,7 +174,9 @@ function MainRunningApp() {
   };
 
   useEffect(() => {
-    checkLaunchOptions();
+    if (mainRunningApp) {
+      checkLaunchOptions();
+    }
   }, [mainRunningApp]);
 
   const handleSetLaunchOptions = async () => {
@@ -204,7 +206,7 @@ function MainRunningApp() {
         <div>
           {mainRunningApp ? (
             <>
-              <span>{isPatched ? `Ready to: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}</span>
+              <span>{isPatched ? `UnPatch: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}</span>
               <ButtonItem layout="below" onClick={handleSetLaunchOptions}>
                 {isPatched ? `UnPatch: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}
               </ButtonItem>
-- 
cgit v1.2.3

