diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index 0341b9c5..edad48a9 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx @@ -21,7 +21,9 @@ export const Login = () => { useEffect(() => { if (loginHadExpired) notify('Your login expired. Please log in again.') - }, [loginHadExpired, notify]) + // Putting notify into this causes the notification to not disappear, so don't do it. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [location.pathname]) const login = async (event: FormEvent) => { event.preventDefault()