Skip to content

Commit 7edef8c

Browse files
committed
Update comments
1 parent cc71160 commit 7edef8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blocks/enrichment/enrichment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export default async function decorate(block) {
4141
.forEach((fragment) => {
4242
const sections = fragment.querySelectorAll(':scope .section');
4343

44-
// If only single section, replace enrichment block with content of section
44+
// If only single section, replace block with content of section
4545
if (sections.length === 1) {
4646
block.closest('.section').classList.add(...sections[0].classList);
4747
const wrapper = block.closest('.enrichment-wrapper');
4848
Array.from(sections[0].children)
4949
.forEach((child) => wrapper.parentNode.insertBefore(child, wrapper));
5050
} else if (sections.length > 1) {
51-
// If multiple section, append them to current section
51+
// If multiple sections, insert them after section of block
5252
const blockSection = block.closest('.section');
5353
Array.from(sections)
5454
.reverse()

0 commit comments

Comments
 (0)