refactored how avatars are being handled

This commit is contained in:
daniel31x13
2023-10-28 00:45:14 -04:00
parent f9eedadb9f
commit cdcfabec0b
21 changed files with 55 additions and 85 deletions
+2
View File
@@ -5,6 +5,8 @@ export default async function getPublicUserData(id: number | string) {
const data = await response.json();
console.log(data);
if (!response.ok) toast.error(data.response);
return data.response;