Skip to content

Commit

Permalink
add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher committed Jan 19, 2024
1 parent bf1aed3 commit 0d07abc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/look-ahead-list/look-ahead-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ export default async function decorate(block) {
const listItem = document.createElement('a');
listItem.href = community.path;
listItem.innerText = `${communityName.split(',')[0]} (${communityName})`;
if (config.text && config.text.toUpperCase() === 'CITY')
if (config.text && config.text.toUpperCase() === 'CITY') {
listItem.innerText = `${communityName.split(',')[0]}`;
}
dropContent.append(listItem);
});
list.append(dropContent);
Expand Down

0 comments on commit 0d07abc

Please sign in to comment.