diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index adab4f31bb2..4a7f2b7dc43 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -18,8 +18,10 @@ Both radio buttons should still be located between opening and closing `label` e ```js const labelChildNodes = [...$('label')].map((node) => [...node.childNodes]); assert( - labelChildNodes.filter((childNode) => childNode[0].nodeName === 'INPUT') - .length === 2 + labelChildNodes.filter( + childNodes => + childNodes.filter(node => node.nodeName === 'INPUT').length === 1 + ).length === 2 ); ```