I have a React app that uses React Router. I have a bug in my code that is due to something in my custom ProtectedRoute component:
const ProtectedRoute = ({ c