From 6c45d16cba4d272612659474dbd2d2cf2f8441b2 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 30 Nov 2026 22:19:41 +0100 Subject: [PATCH] fix(native): retain the selected storefront offer during account checks --- client/native-shell/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/native-shell/main.ts b/client/native-shell/main.ts index eca3859b2..ef7a3a2f4 100644 --- a/client/native-shell/main.ts +++ b/client/native-shell/main.ts @@ -1009,7 +1009,10 @@ function showPlans(opts: { back?: boolean } = {}): void { choose.addEventListener('click', async () => { const plan = selected(); - if (!plan || !offerFor(offer, plan, interval).buyable) return; + if (!plan) return; + const selectedInterval = interval; + const price = offerFor(offer, plan, selectedInterval); + if (!price.buyable) return; void tap(ImpactStyle.Medium); // A store account with a running subscription buys nothing more: say so before the form. choose.disabled = true; @@ -1019,7 +1022,7 @@ function showPlans(opts: { back?: boolean } = {}): void { showSubscribed(); return; } - showClaim(plan, interval, offerFor(offer, plan, interval).label); + showClaim(plan, selectedInterval, price.label); }); const load = async () => {