From f48ebf21513d0ab928245c7e696b4b26604788ce Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Thu, 9 Jul 2026 19:57:10 +0200 Subject: [PATCH] fix(ui): VK-iOS shows the pack CTA disabled with a toast, not a failed buy Money purchases are not permitted in the VK iOS app (Apple ToS), and the backend already refuses them (the CreateOrder VK-iOS freeze). Show the pack "Buy" muted there and explain on tap ("purchases are not available on this platform"), instead of letting the tap hit a 403 and a generic error toast. The storefront still lists the packs. --- ui/src/lib/i18n/en.ts | 1 + ui/src/lib/i18n/ru.ts | 1 + ui/src/screens/Wallet.svelte | 20 ++++++++++++++++++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ui/src/lib/i18n/en.ts b/ui/src/lib/i18n/en.ts index 373fafe..59888f6 100644 --- a/ui/src/lib/i18n/en.ts +++ b/ui/src/lib/i18n/en.ts @@ -243,6 +243,7 @@ export const en = { 'wallet.empty': 'The store is empty for now', 'wallet.buy': 'Buy', 'wallet.offer': 'Public offer', + 'wallet.platformNoBuy': 'Purchases are not available on this platform', 'wallet.gpStub': 'To buy chips, install the RuStore build.', 'wallet.cur.RUB': '₽', 'wallet.cur.VOTE': 'votes', diff --git a/ui/src/lib/i18n/ru.ts b/ui/src/lib/i18n/ru.ts index 28055c1..17f8e68 100644 --- a/ui/src/lib/i18n/ru.ts +++ b/ui/src/lib/i18n/ru.ts @@ -243,6 +243,7 @@ export const ru: Record = { 'wallet.empty': 'Магазин пока пуст', 'wallet.buy': 'Купить', 'wallet.offer': 'Публичная оферта', + 'wallet.platformNoBuy': 'На данной платформе покупки невозможны', 'wallet.gpStub': 'Чтобы покупать фишки, установите версию из RuStore.', 'wallet.cur.RUB': '₽', 'wallet.cur.VOTE': 'голосов', diff --git a/ui/src/screens/Wallet.svelte b/ui/src/screens/Wallet.svelte index f574533..6e26b7e 100644 --- a/ui/src/screens/Wallet.svelte +++ b/ui/src/screens/Wallet.svelte @@ -1,8 +1,9 @@