How to fix useSelector must return the same type in every case in React | DevErrors