1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-09 04:59:18 +00:00

fix: create reusable default profile pictures (#406)

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Kyle Mendell
2025-04-03 08:06:56 -05:00
committed by GitHub
parent 0d31c0ec6c
commit 734c6813ea
9 changed files with 166 additions and 46 deletions

View File

@@ -52,14 +52,14 @@
async function updateProfilePicture(image: File) {
await userService
.updateProfilePicture(userId, image)
.updateCurrentUsersProfilePicture(image)
.then(() => toast.success(m.profile_picture_updated_successfully()))
.catch(axiosErrorToast);
}
async function resetProfilePicture() {
await userService
.resetProfilePicture(userId)
.resetCurrentUserProfilePicture()
.then(() => toast.success(m.profile_picture_has_been_reset()))
.catch(axiosErrorToast);
}