text !== "" does not work and new ordered list element gets created when user starts typing blank
space
#3
Labels
bug
Something isn't working
blank
space
#3
Run the project in your local server and type more then 2 space you will see an ordered list gets created with initial value of 0.
The ordered list is suppose to get created only when user enter prefix of any numeric value So !isNaN(text) verifies that prefix entered by user is a numeric value but in case of blank space it also returns true (i.e isNaN(text) false ) stating that blank space is a numeric value of "0" which creates a ordered list.
Type-writer/App/src/components/Pages/Main/Typewriter.jsx
Line 98 in ed0bd39
The text was updated successfully, but these errors were encountered: