nss-evening-cohort-12 / pants-trousers

pants-trousers created by GitHub Classroom
0 stars 2 forks source link

Fix Print to Dom #37

Open JeremiahV93 opened 4 years ago

JeremiahV93 commented 4 years ago

User Story

As a user, when I go

AC

WHEN the dev loads a page THEN I should not see any errors

Dev Notes

"The innerHTML is set to null" error occurs as the slected div is not present when the page loads. IE when on the inventory page the review div is not available causing an error. Maybe an if/else statement in the printToDom function.