mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
Every checkout call site cleared the stored promo code as soon as `autumn.attach()` resolved, but attach resolving only means Stripe handed back a payment URL. A user who closed or abandoned that checkout page came back with the code already gone from localStorage and the `?discountCode=` param long since stripped, with no way to get it back. Clear centrally instead: `PromoCodeHost` spends the code once the org moves up a plan, which is the point at which the checkout it was captured for actually went through. Downgrades and trial expiries leave an unused code alone. Codes also carry a 30-day expiry now, so one that is never redeemed stops applying to future checkouts instead of discounting them forever. |
||
|---|---|---|
| .. | ||
| company-brain-skills | ||
| account.tsx | ||
| api-keys.tsx | ||
| billing.tsx | ||
| cancel-reasons.ts | ||
| company-brain-automations.tsx | ||
| company-brain-connections.tsx | ||
| company-brain-models.tsx | ||
| company-brain-proactivity.tsx | ||
| company-brain-skills.tsx | ||
| connections-mcp.tsx | ||
| integrations.tsx | ||
| org-context.tsx | ||
| proactiveness-icon.tsx | ||
| proactiveness.tsx | ||
| settings-content.tsx | ||
| settings-modal.tsx | ||
| settings-org-switcher.tsx | ||
| support.tsx | ||
| sync-history-panel.tsx | ||
| sync-status-badge.tsx | ||
| sync-utils.ts | ||
| workspace-prompt.tsx | ||