Merge pull request #46 from BEDOLAGA-DEV/dev

Dev
This commit is contained in:
Egor
2026-01-20 01:46:17 +03:00
committed by GitHub

View File

@@ -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';