I am getting this error twice every time I run this. I did my search and tried to cancel the subscription of onAuthStateChanged() to useEffect() in
onAuthStateChanged()
useEffect()