Javascript Conditional Statement Not Working In Useeffect Stack Overflow

Javascript Conditional Statement Not Working In Useeffect Stack Overflow