diff --git a/curriculum/challenges/english/25-front-end-development/lab-event-flyer-page/66e45c8140f9fda5c105ae26.md b/curriculum/challenges/english/25-front-end-development/lab-event-flyer-page/66e45c8140f9fda5c105ae26.md index 0478e53666d..95bd03ab0bd 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-event-flyer-page/66e45c8140f9fda5c105ae26.md +++ b/curriculum/challenges/english/25-front-end-development/lab-event-flyer-page/66e45c8140f9fda5c105ae26.md @@ -133,7 +133,7 @@ The width of your `hr` elements should be set using a percent value. ```js assert.isTrue([...new __helpers.CSSHelp(document).getCSSRules().values()].some(rule => - rule.selectorText.split(',').some(selector => + rule.selectorText?.split(',').some(selector => selector.trim() === 'hr' && rule.style.width?.endsWith('%') ) @@ -144,7 +144,7 @@ The width of your `section` elements should be set using a percent value. ```js assert.isTrue([...new __helpers.CSSHelp(document).getCSSRules().values()].some(rule => - rule.selectorText.split(',').some(selector => + rule.selectorText?.split(',').some(selector => selector.trim() === 'section' && rule.style.width?.endsWith('%') )