فهرست منبع

fix(desktop): correct user code extraction when URL contains colons (#28837)

OpeOginni 5 ماه پیش
والد
کامیت
3cf955e9ad
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/components/dialog-connect-provider.tsx

+ 1 - 1
packages/app/src/components/dialog-connect-provider.tsx

@@ -524,7 +524,7 @@ export function DialogConnectProvider(props: { provider: string }) {
     const code = createMemo(() => {
     const code = createMemo(() => {
       const instructions = store.authorization?.instructions
       const instructions = store.authorization?.instructions
       if (instructions?.includes(":")) {
       if (instructions?.includes(":")) {
-        return instructions.split(":")[1]?.trim()
+        return instructions.split(":").pop()?.trim()
       }
       }
       return instructions
       return instructions
     })
     })