Условие для показа кнопки QR

This commit is contained in:
MpakobecEx 2026-05-28 00:06:55 +05:00
parent 5e683fcb55
commit bd42af67aa
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@
content += `<div class="qr-data">🃏 Данные карты: ${shortData}</div>`; content += `<div class="qr-data">🃏 Данные карты: ${shortData}</div>`;
} }
const showQRBtn = (record.type === 'qr' || record.type === 'both') && record.qr_code ? const showQRBtn = (record.type === 'qr' || record.type === 'both') && record.has_qr ?
`<button class="show-qr-btn" data-id="${record.id}">🖼️ Показать QR</button>` : ''; `<button class="show-qr-btn" data-id="${record.id}">🖼️ Показать QR</button>` : '';
return ` return `