From 359007848d3b5f93e7ee0e44322678e600fa8536 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 2 Apr 2026 12:53:07 +0800 Subject: [PATCH] chore: remove save binded cookie --- web/app/components/billing/partner-stack/use-ps-info.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/billing/partner-stack/use-ps-info.ts b/web/app/components/billing/partner-stack/use-ps-info.ts index 5a83dec0e5..3ad9b392bc 100644 --- a/web/app/components/billing/partner-stack/use-ps-info.ts +++ b/web/app/components/billing/partner-stack/use-ps-info.ts @@ -27,6 +27,8 @@ const usePSInfo = () => { const domain = globalThis.location?.hostname.replace('cloud', '') const saveOrUpdate = useCallback(() => { + if (hasBind) + return if (!psPartnerKey || !psClickId) return if (!isPSChanged) @@ -39,7 +41,7 @@ const usePSInfo = () => { path: '/', domain, }) - }, [psPartnerKey, psClickId, isPSChanged, domain]) + }, [psPartnerKey, psClickId, isPSChanged, domain, hasBind]) const bind = useCallback(async () => { if (psPartnerKey && psClickId && !hasBind) {