From e2ebf76383ccbbe7c279d0b5bb2b797c9ef0d65a Mon Sep 17 00:00:00 2001 From: Vyom Jain Date: Fri, 14 Jul 2023 17:31:11 +0530 Subject: [PATCH 1/2] fix: remove console log in UserWithPFPInCell.tsx --- src/components/UserWithPFPInCell.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/UserWithPFPInCell.tsx b/src/components/UserWithPFPInCell.tsx index a7f3e3f919..613b3f1e07 100644 --- a/src/components/UserWithPFPInCell.tsx +++ b/src/components/UserWithPFPInCell.tsx @@ -14,16 +14,16 @@ interface IUserWithPFPInCell { export const UserWithPFPInCell: FC = ({ user }) => { const pfpToken = useGiverPFPToken(user?.walletAddress, user?.avatar); - console.log(addressToUserView(user?.walletAddress?.toLowerCase())); + const userProfileLink = addressToUserView(user?.walletAddress?.toLowerCase()) || ""; const name = - user?.name || shortenAddress(user?.walletAddress?.toLowerCase()); + user?.name || shortenAddress(user?.walletAddress?.toLowerCase()) || '\u200C'; return pfpToken ? ( - {name || '\u200C'} + {name} ) : ( - {name || '\u200C'} + {name} ); }; const StyledPFP = styled(PFP)` From 4082c290d97cf8ac351800e1a28004f423e75f16 Mon Sep 17 00:00:00 2001 From: Vy Date: Fri, 14 Jul 2023 17:33:51 +0530 Subject: [PATCH 2/2] format code --- src/components/UserWithPFPInCell.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/UserWithPFPInCell.tsx b/src/components/UserWithPFPInCell.tsx index 613b3f1e07..fe0fc04998 100644 --- a/src/components/UserWithPFPInCell.tsx +++ b/src/components/UserWithPFPInCell.tsx @@ -14,16 +14,21 @@ interface IUserWithPFPInCell { export const UserWithPFPInCell: FC = ({ user }) => { const pfpToken = useGiverPFPToken(user?.walletAddress, user?.avatar); - const userProfileLink = addressToUserView(user?.walletAddress?.toLowerCase()) || ""; + const userProfileLink = + addressToUserView(user?.walletAddress?.toLowerCase()) || ''; const name = - user?.name || shortenAddress(user?.walletAddress?.toLowerCase()) || '\u200C'; + user?.name || + shortenAddress(user?.walletAddress?.toLowerCase()) || + '\u200C'; return pfpToken ? ( {name} ) : ( - {name} + + {name} + ); }; const StyledPFP = styled(PFP)`