Closed Pavilion-devs closed 1 year ago
π @Pavilion-devs Thank you for raising an issue. We will investigate the matter and get back to you as soon as possible π. Please make sure you have given us as much context as possible. Additionally, consider giving our repository a star. β It will motivate us to do more!
What you are going to do to solve this issue?
I'm getting an error "TypeError: Cannot read properties of undefined (reading '0') at script.js:23:32" which means the result array is empty when the superhero cannot be found. So to clear the error we will have to check if the results error exists and if it contains any elements before accessing the first element (json.results[0]). @Prajwal0225
@Prajwal0225 I have fixed this issue already. Should I create a PR ?
Can you do something like If the user enters an incorrect superhero name, it will display the message, 'A superhero with this name does not exist on the website.
Yes @Prajwal0225 . I already did that but I need your permission to push and make a PR ?
Please make a Pr my cloning updated code from the repo.
please assign this to me so that i contribute to this hactoberfest 2023 . i have excellent knowledge of web dev and you can also check my projects in my repositories.
Already done @Prajwal0225 @Mohd786-hub. Just made a PR on it. You can check other issues.
@Prajwal0225 i've raised a PR please have a look...
I tried searching for a wrong superhero name and nothing displayed. Mind if I take on this issue @Prajwal0225