Fixed issue that prevents proper logout
This commit is contained in:
@@ -85,8 +85,8 @@ export function AuthProvider({ children }: PropsWithChildren) {
|
||||
};
|
||||
|
||||
const logout = async () => {
|
||||
const [_, data] = await get("logout");
|
||||
if (data === null) {
|
||||
const [ok, _] = await get("logout");
|
||||
if (ok) {
|
||||
setUser(null);
|
||||
notify(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user