From 5d58a387ca35ab485939fb7e6b6f306045e7d567 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Thu, 14 May 2026 18:27:15 +0400 Subject: [PATCH] ccpndition --- src/app/pages/fastcheck-page/fastcheck-page.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/pages/fastcheck-page/fastcheck-page.ts b/src/app/pages/fastcheck-page/fastcheck-page.ts index 7d181a3..3bcb685 100644 --- a/src/app/pages/fastcheck-page/fastcheck-page.ts +++ b/src/app/pages/fastcheck-page/fastcheck-page.ts @@ -150,7 +150,8 @@ export class FastcheckPage { // default fallback. The Pay button is gated on this — without a real // partner id we never call /settings and always show the Telegram button. const idParam = params.get('id'); - const isRealId = !!idParam && idParam !== this.defaultPartnerId; + const hasIdParam = !!idParam; + const isRealId = hasIdParam && idParam !== this.defaultPartnerId; this.partnerId.set(idParam ?? this.defaultPartnerId); this.hasPartnerId.set(isRealId); @@ -165,11 +166,10 @@ export class FastcheckPage { if (digits.length === 18) this.lookupFastcheck(masked); } - // Call /settings on every load when we have a real partner id — it may - // return active check data to autofill, telegramID, and callbackurl. - // Without a real id we skip the request entirely: no Pay button can be - // shown anyway and we don't want a wasted call against the default id. - if (isRealId) { + // Call /settings whenever URL has ?id=... (including the default id) + // so QR-return flows can still autofill data and callback fields. + // Pay button visibility remains gated by hasPartnerId (real id only). + if (hasIdParam) { this.loadSettings(!!created || !!iidParam); } else { this.settingsLoaded.set(true);