Open SJDiggs opened 11 months ago
I really appreciate that you fixed this case sensitivity. Good job on the code structure and finding the work-around to make it more accessible to users. I sometimes do not like using sentence casing on first hand, so being able to just type with the lowercase casing in mind is neat!
The vehicle listings API leveraged was very particular about the parameters used to provide the expected data. For example the Params are case sensitive, so passing in make="ranger" would result in false positives as the expected param on the API is expecting it to be "Ranger". I implemented the following solution to ensure the first letter of each 'make' param being passed is converted to uppercase by using the charAt(0) ((first character)) and toUpperCase method, then using slice to replace the first letter with the corresponding uppercase letter.
const handleFindMeClick = async (make, model, year) => {