Prop loading that you're passing to your component is undefined somehow, I believe it is a ref for something, please check if you really initialized it correctly. It might be undefined on initial load somehow.
Other thing - you could add the Optional Chaining operator there to prevent this error:
if(loading?.current&&showScore){}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Prop
loadingthat you're passing to your component isundefinedsomehow, I believe it is areffor something, please check if you really initialized it correctly. It might beundefinedon initial load somehow.Other thing - you could add the Optional Chaining operator there to prevent this error: