From b56c9030f476a751a5c50e16bb71ea183b12818e Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 20 Jan 2026 01:45:31 +0300 Subject: [PATCH] Update index.html --- public/miniapp/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/miniapp/index.html b/public/miniapp/index.html index 1025629..66d4e21 100644 --- a/public/miniapp/index.html +++ b/public/miniapp/index.html @@ -17117,9 +17117,14 @@ const label = document.createElement('div'); label.className = 'payment-method-label'; - const labelKey = `topup.method.${method.id}.title`; - const labelValue = t(labelKey); - label.textContent = labelValue === labelKey ? method.id : labelValue; + // Используем name из API если есть, иначе локализацию + if (method.name) { + label.textContent = method.name; + } else { + const labelKey = `topup.method.${method.id}.title`; + const labelValue = t(labelKey); + label.textContent = labelValue === labelKey ? method.id : labelValue; + } const description = document.createElement('div'); description.className = 'payment-method-description';