diff options
Diffstat (limited to 'frontend/src/apis/hooks/system.ts')
-rw-r--r-- | frontend/src/apis/hooks/system.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/apis/hooks/system.ts b/frontend/src/apis/hooks/system.ts index 96af55849..24691c4b6 100644 --- a/frontend/src/apis/hooks/system.ts +++ b/frontend/src/apis/hooks/system.ts @@ -1,5 +1,5 @@ import { Environment } from "@/utilities"; -import { setLoginRequired } from "@/utilities/event"; +import { setAuthenticated } from "@/utilities/event"; import { useMemo } from "react"; import { useMutation, useQuery, useQueryClient } from "react-query"; import { QueryKeys } from "../queries/keys"; @@ -173,7 +173,7 @@ export function useSystem() { () => api.system.logout(), { onSuccess: () => { - setLoginRequired(); + setAuthenticated(false); client.clear(); }, } |