From e205effa83dbbcb9c13f3f11a493a525e989d7b6 Mon Sep 17 00:00:00 2001
From: Janleyx <242423638+Janleyx@users.noreply.github.com>
Date: Sat, 18 Jul 2026 10:20:20 -0400
Subject: preserve Armada game launch wrapper

---
 src/components/SmartClipboardButton.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/components/SmartClipboardButton.tsx')

diff --git a/src/components/SmartClipboardButton.tsx b/src/components/SmartClipboardButton.tsx
index c90515a..7217e83 100644
--- a/src/components/SmartClipboardButton.tsx
+++ b/src/components/SmartClipboardButton.tsx
@@ -20,12 +20,11 @@ export function SmartClipboardButton() {
   }, [showSuccess]);
 
   const getLaunchOptionText = async (): Promise<string> => {
-    try {
-      const result = await getLaunchOption();
-      return result.launch_option || "~/lsfg %command%";
-    } catch (error) {
-      return "~/lsfg %command%";
+    const result = await getLaunchOption();
+    if (!result.launch_option) {
+      throw new Error("Launch option is unavailable");
     }
+    return result.launch_option;
   };
 
   const copyToClipboard = async () => {
-- 
cgit v1.2.3

