10secondsofcode/coding-ai

Changing country dropdown crashes the app

gurpreet-hanjra opened this issue · 3 comments

Go to app - https://mentors.netlify.com/
Change the country - India to Russia
Crashes the app. Error in console -
backend.js:6 TypeError: Cannot read property 'filter' of null
at t.a.filter (Mentor.js:87)
at hi (react-dom.production.min.js:2997)
at pi (react-dom.production.min.js:2983)
at react-dom.production.min.js:6205
at t.unstable_runWithPriority (scheduler.production.min.js:266)
at Wo (react-dom.production.min.js:2739)
at wu (react-dom.production.min.js:5984)
at ou (react-dom.production.min.js:5266)
at react-dom.production.min.js:2774
at t.unstable_runWithPriority (scheduler.production.min.js:266)

I would like to fix the bug :) PR coming soon

Created a pull request for this issue. Please review it.

Thanks for your help guys :)