gpmc-lab-ufrgs / atlas-frontend-old

MIT License
11 stars 9 forks source link

White screen when clicking on some city in a state #134

Closed DouglasMonteles closed 1 year ago

DouglasMonteles commented 1 year ago

Description

On the home screen, when clicking on a state and then on one of its cities, the screen turns white, without any information and the browser console displays the message:

DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('/src/assets/utils/compare.svg') is not a valid name.

Tasks

DouglasMonteles commented 1 year ago

The commit with id 5ce2f47935735d18f4eeccdc2611ddab13767b83 whose title is: Add tests to TableMode component (#94) modified the src/components/Sidebar/ComparisonButton/ComparisonButton.tsx file on line 8 by removing the ?component at the end of the svg import. With that, react stopped interpreting CompareIcon as a react component, which caused the said bug.