branch setzen

This commit is contained in:
2022-12-18 18:58:54 +01:00
parent 87c4224271
commit bac04885b0
6 changed files with 64 additions and 26 deletions

View File

@ -129,7 +129,8 @@ export const UserCtxProvider = ({children}:TUserContextProviderProps) => {
}
else
{
const {data} = await Axios.get('session.php');
const session = await Axios.get('session.php');
const {data} = session;
if(data.success && data.user)
{
setUser(data.user);