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