|
return <Redirect to={{ pathname: "/landing" }} |
This Redirect is not working. me seems to throw an error if not authenticated and not an empty Object, as to why execution stops at if(error) above this line.
Would create a pull request, but wondering if Redirect should be return on error or if there is a better option.
FullStackTwitterClone/web/src/components/IsAuthenticated.tsx
Line 28 in 44fe4ea
This Redirect is not working.
meseems to throw an error if not authenticated and not an empty Object, as to why execution stops atif(error)above this line.Would create a pull request, but wondering if Redirect should be return on error or if there is a better option.