fix(payments): point manage subscription to org customer portal
Some checks failed
CI / Backend (pull_request) Successful in 32s
CI / UI (pull_request) Failing after 28s
CI / Backend (push) Successful in 26s
CI / UI (push) Failing after 25s
Release / Check ui (push) Failing after 16s
Release / Docker / ui (push) Has been skipped
Release / Test backend (push) Successful in 47s
Release / Docker / caddy (push) Successful in 50s
Release / Docker / runner (push) Successful in 2m0s
Release / Docker / backend (push) Successful in 2m59s
Release / Gitea Release (push) Has been skipped
Some checks failed
CI / Backend (pull_request) Successful in 32s
CI / UI (pull_request) Failing after 28s
CI / Backend (push) Successful in 26s
CI / UI (push) Failing after 25s
Release / Check ui (push) Failing after 16s
Release / Docker / ui (push) Has been skipped
Release / Test backend (push) Successful in 47s
Release / Docker / caddy (push) Successful in 50s
Release / Docker / runner (push) Successful in 2m0s
Release / Docker / backend (push) Successful in 2m59s
Release / Gitea Release (push) Has been skipped
This commit is contained in:
@@ -13,11 +13,8 @@
|
|||||||
const emailParam = data.email ? `?customer_email=${encodeURIComponent(data.email)}` : '';
|
const emailParam = data.email ? `?customer_email=${encodeURIComponent(data.email)}` : '';
|
||||||
const checkoutMonthly = `https://buy.polar.sh/polar_cl_KtOHiuL2UkiQ4hrojBfINnxlCTORX1A8DeUUO18irVA${emailParam}`;
|
const checkoutMonthly = `https://buy.polar.sh/polar_cl_KtOHiuL2UkiQ4hrojBfINnxlCTORX1A8DeUUO18irVA${emailParam}`;
|
||||||
const checkoutAnnual = `https://buy.polar.sh/polar_cl_ylmUnsorSBCgNMhWVG7iO8zVQBnr5cVeLJlW74fm5kG${emailParam}`;
|
const checkoutAnnual = `https://buy.polar.sh/polar_cl_ylmUnsorSBCgNMhWVG7iO8zVQBnr5cVeLJlW74fm5kG${emailParam}`;
|
||||||
// Customer portal: if user already has a Polar customer ID, link to their portal;
|
// Customer portal: always link to the org portal — customer logs in with checkout email
|
||||||
// otherwise fall back to the org page
|
const manageUrl = `https://polar.sh/libnovel/portal`;
|
||||||
const manageUrl = data.polarCustomerId
|
|
||||||
? `https://polar.sh/purchases`
|
|
||||||
: `https://polar.sh/libnovel`;
|
|
||||||
|
|
||||||
// ── Avatar ───────────────────────────────────────────────────────────────────
|
// ── Avatar ───────────────────────────────────────────────────────────────────
|
||||||
let avatarUrl = $state<string | null>(untrack(() => data.avatarUrl ?? null));
|
let avatarUrl = $state<string | null>(untrack(() => data.avatarUrl ?? null));
|
||||||
|
|||||||
Reference in New Issue
Block a user