mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Update AuthContext.tsx
This commit is contained in:
parent
05a7ed215b
commit
a6afc08b2b
|
@ -49,8 +49,7 @@ export const AuthState = ({ children }: AuthStateProps) => {
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, [setUser]
|
}, [setUser]);
|
||||||
);
|
|
||||||
|
|
||||||
function login(data: IUserLoginData, callback?: DataCallback) {
|
function login(data: IUserLoginData, callback?: DataCallback) {
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user