This commit is contained in:
Peter Hoppe
2023-01-30 17:01:44 +01:00
parent ff8e4bc831
commit a861acb2e0
11 changed files with 551 additions and 517 deletions

View File

@ -127,7 +127,7 @@ export const getProfilData = async () =>
{
const profilData = await Axios.post('getProfilData.php');
const {data} = profilData;
if(data.success && data.user)
if(data.success && data.data)
{
return data;
}
@ -138,15 +138,9 @@ export const getProfilData = async () =>
}
export const getUser = async () =>
{
const {data} = await Axios.get('getUser.php');
if(data.success && data.user)
{
return data;
}
else
{
return null;
}
const res = await Axios.get('getUser.php');
const {data} = res;
return data;
}