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 () => {