From e9717b137eb92a504da05f70e942f2c9c44aa72e Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Fri, 4 Jul 2025 10:17:12 +0200 Subject: [PATCH] fix: minor polish --- components/CropPopup.vue | 2 +- components/Settings/UserSettings/Profile.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/CropPopup.vue b/components/CropPopup.vue index 69d49ea..744b963 100644 --- a/components/CropPopup.vue +++ b/components/CropPopup.vue @@ -55,7 +55,7 @@ async function cropImage() { } } }); - const file = new File([blob], 'image.png', { type: 'image/png' }) + const file = new File([blob], 'preview.png', { type: 'image/png' }) reader.readAsDataURL(file) } }); diff --git a/components/Settings/UserSettings/Profile.vue b/components/Settings/UserSettings/Profile.vue index cbc6376..b3d9f20 100644 --- a/components/Settings/UserSettings/Profile.vue +++ b/components/Settings/UserSettings/Profile.vue @@ -46,8 +46,8 @@ if (!user) { } let newPfpFile: File; -const isCropPopupVisible = ref(false); // State to manage the visibility of the CropPopup -const cropImageSrc = ref(''); // State to hold the image source for cropping +const isCropPopupVisible = ref(false); +const cropImageSrc = ref(''); async function saveChanges() { if (!user) return;