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
loading
that you're passing to your component isundefined
somehow, I believe it is aref
for something, please check if you really initialized it correctly. It might beundefined
on initial load somehow.Other thing - you could add the Optional Chaining operator there to prevent this error: