React Hook useEffect has a missing dependency: ‘getNameAndBalance’. Either include it or remove the dependency array react-hooks/exhaustive-deps
React Hook useEffect has a missing dependency: ‘getNameAndBalance’. Either include it or remove the dependency array react-hooks/exhaustive-deps
Hi @ravi12
The warning related to useEffect can usually be ignored if you dont need a dependency.
The typeError shown in the image is because you are trying to read [2] index on a undefined value. You can update the if condition as below to fix the error.
if( response?.name && response.name[2] )