fix(subscription): return to chat from paywall

This commit is contained in:
2026-06-30 10:17:29 +08:00
parent 089871af3e
commit 374aaa8c64
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -156,6 +156,7 @@ export function SubscriptionScreen({
payment.isPollingOrder;
const canActivate =
selectedPlan !== null && payment.agreed && !isPaymentBusy;
const backHref = returnTo === "chat" ? ROUTES.chat : ROUTES.sidebar;
const finishPaymentSuccessClose = () => {
setShowPaymentSuccessDialog(false);
@@ -215,7 +216,7 @@ export function SubscriptionScreen({
<MobileShell>
<div className={styles.shell}>
<header className={styles.header}>
<SubscriptionBackLink className={styles.backSlot} />
<SubscriptionBackLink className={styles.backSlot} href={backHref} />
</header>
<div className={styles.offerStack}>