Created by: rajkapadia247
If you try to navigate to /state/, it would cause console errors causing a white screen to appear. Same holds true if instead of "/state/MH/", you enter "/state/mh/" (not in caps). Both of those conditions are now handled.
Description of PR
The user is now navigated to the Home page if an invalid error state code is entered in the URL.
Till now, if an invalid state code was entered in the URL (/state/), the user would be shown a white screen. If a state code is entered in small letters, i.e. mh instead of MH, again the user is shown a white screen. Now even if "mh" is entered, the user is navigated to the Maharashtra page.
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone
Add relevant screenshots here