summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/index.tsx6
1 files changed, 4 insertions, 2 deletions
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>