fix: gravatar profile image

This commit is contained in:
Timothy Jaeryang Baek
2026-04-01 05:33:41 -05:00
parent eb5c95ef8e
commit b898fc0258
3 changed files with 17 additions and 1 deletions
+3
View File
@@ -413,6 +413,9 @@ export const updateUserProfile = async (token: string, profile: object) => {
.catch((err) => {
console.error(err);
error = err.detail;
if (Array.isArray(error)) {
error = error.map((e: { msg?: string }) => e.msg).join("; ");
}
return null;
});
+5 -1
View File
@@ -16,10 +16,14 @@ export const getGravatarUrl = async (token: string, email: string) => {
})
.catch((err) => {
console.error(err);
error = err;
error = err.detail ?? err;
return null;
});
if (error) {
throw error;
}
return res;
};