From 4222fcec52d66b56f55307a9cc26240464bc98e4 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sat, 5 Oct 2024 02:22:43 +0100 Subject: [PATCH] feat: adding change hero --- .../src/pages/profile/profile-hero/profile-hero.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/renderer/src/pages/profile/profile-hero/profile-hero.tsx b/src/renderer/src/pages/profile/profile-hero/profile-hero.tsx index a4d702f6..f81761ea 100644 --- a/src/renderer/src/pages/profile/profile-hero/profile-hero.tsx +++ b/src/renderer/src/pages/profile/profile-hero/profile-hero.tsx @@ -274,15 +274,7 @@ export function ProfileHero() { if (filePaths && filePaths.length > 0) { const path = filePaths[0]; - const { imagePath } = await window.electron - .processProfileImage(path) - .catch(() => { - showErrorToast(t("image_process_failure")); - return { imagePath: null }; - }); - - console.log("imagePath", imagePath); - setHero(imagePath); + setHero(path); // onChange(imagePath); } @@ -292,7 +284,7 @@ export function ProfileHero() { if (hero) return `local:${hero}`; // if (userDetails?.profileImageUrl) return userDetails.profileImageUrl; - return null; + return ""; }; // const imageUrl = getImageUrl();