From bb3f0fe2eda842eb4ccf0394028051064c890e0d Mon Sep 17 00:00:00 2001 From: Sid-80 Date: Fri, 14 Jun 2024 00:37:52 +0530 Subject: [PATCH] fix: issues --- src/components/pages/user/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/pages/user/index.tsx b/src/components/pages/user/index.tsx index 6d2c08d..df91d89 100644 --- a/src/components/pages/user/index.tsx +++ b/src/components/pages/user/index.tsx @@ -66,7 +66,7 @@ export default function User({ userId }: { userId: string }) { }; await navigator.share(shareData); } catch (err) { - console.log("Error : ", err); + + toastify(`Failed to share profile`, "error"); } }; @@ -75,7 +75,7 @@ export default function User({ userId }: { userId: string }) { await navigator.clipboard.writeText(window.location.href); toastify("Profile URL copied!!", "success"); } catch (err) { - console.log("Error : ", err); + + toastify(`Failed to share profile`, "error"); } }; @@ -154,8 +154,8 @@ export default function User({ userId }: { userId: string }) { className=" w-[135px] h-[135px] relative inline-block border-4 border-white dark:border-slate-800 rounded-full object-cover cursor-pointer" /> -
- -