SHA256
Обновить учёт поддержки, лайки и профиль перед MVP
This commit is contained in:
@@ -51,10 +51,10 @@ function renderAmount(cents, sign = '') {
|
||||
value.className = 'profile-support-amount__value';
|
||||
value.setAttribute('aria-hidden', 'true');
|
||||
value.dataset.cents = String(cents);
|
||||
value.textContent = `${sign}${formatStarAmount(cents)}`;
|
||||
value.textContent = formatStarAmount(cents) ? `${sign}${formatStarAmount(cents)}` : '';
|
||||
const spoken = document.createElement('span');
|
||||
spoken.className = 'sr-only';
|
||||
spoken.textContent = `${sign}${formatStars(cents)}`;
|
||||
spoken.textContent = formatStarAmount(cents) ? `${sign}${formatStars(cents)}` : '⭐';
|
||||
wrap.append(value);
|
||||
wrap.insertAdjacentHTML('beforeend', iconHtml('star', true, 'profile-support-amount__star'));
|
||||
wrap.append(spoken);
|
||||
|
||||
Reference in New Issue
Block a user