From b5185c0100041a36747e88f8b4b450d74085cf22 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 25 Apr 2024 10:21:59 +0530 Subject: [PATCH] chore: code cleanup --- .../routes/dashboard/settings/personal/UserProfilePicture.vue | 4 ++-- app/javascript/v3/components/Form/ProfileAvatar.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/UserProfilePicture.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/UserProfilePicture.vue index 0fd372dc0..489f95ecd 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/personal/UserProfilePicture.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/personal/UserProfilePicture.vue @@ -8,8 +8,8 @@ diff --git a/app/javascript/v3/components/Form/ProfileAvatar.vue b/app/javascript/v3/components/Form/ProfileAvatar.vue index 06c968d29..30309f549 100644 --- a/app/javascript/v3/components/Form/ProfileAvatar.vue +++ b/app/javascript/v3/components/Form/ProfileAvatar.vue @@ -108,13 +108,13 @@ const openFileInput = () => { const onImageUpload = event => { const [file] = event.target.files; - emits('change', { + emits('change-avatar', { file, url: file ? URL.createObjectURL(file) : null, }); }; const onAvatarDelete = () => { - emits('delete'); + emits('delete-avatar'); };