Skip to content

Commit

Permalink
linter corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpananetcetric committed Aug 5, 2024
1 parent a499db8 commit a534d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/cards/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default function decorate(block) {
li.classList.add(`cards-card-bg-${div.textContent}`);
} else if (div.children.length === 1 && div.querySelector('picture')) {
div.className = 'cards-card-image';
if (linkName) {
div.querySelector('a').setAttribute('title', linkName)
};
if (linkName) {
div.querySelector('a').setAttribute('title', linkName);
}
} else {
div.className = 'cards-card-body';
}
Expand Down

0 comments on commit a534d66

Please sign in to comment.