supermemory/apps/web/components/add-document
rajashidattapy e8eaac71fb fix(web): keep the discount code until the upgrade actually completes
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.
2026-08-20 00:02:43 +05:30
..
connections.tsx fix(web): keep the discount code until the upgrade actually completes 2026-08-20 00:02:43 +05:30
file.tsx Support HTML file uploads in Nova (#1076) 2026-06-10 06:09:20 +00:00
index.tsx fix(web): keep the discount code until the upgrade actually completes 2026-08-20 00:02:43 +05:30
link.tsx Add bulk multi-URL paste to create separate memories (#1109) 2026-06-15 11:37:09 +05:30
note.tsx Add bulk multi-URL paste to create separate memories (#1109) 2026-06-15 11:37:09 +05:30