Closed czhou578 closed 2 years ago
It seems to work on my end?
Sorry, I didn't notice you changed line 98 as well. Why not make it just string.toLowerCase()
?
You will want to make these two comparisons on lowercase strings as well: https://github.com/bcfoodapp/streetfoodlove/blob/62467175b9e22551df10bdf924c779806fb328f8/app/src/components/UI/Atoms/SearchBox/SearchBox.tsx#L110 https://github.com/bcfoodapp/streetfoodlove/blob/62467175b9e22551df10bdf924c779806fb328f8/app/src/components/UI/Atoms/SearchBox/SearchBox.tsx#L125
I know of many restaurants where their names start with a lowercase letter, so this isn't going to work for all restaurant names. Why not change the search string to be lowercase, and compare to lowercase versions of vendor names?