Skip to content

Commit

Permalink
Merge pull request #2905 from Vyvy-vi/patch-2
Browse files Browse the repository at this point in the history
fix: remove console log in UserWithPFPInCell.tsx
  • Loading branch information
MohammadPCh authored Aug 13, 2023
2 parents 55930f2 + fc1b7ac commit ee2936f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/UserWithPFPInCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ interface IUserWithPFPInCell {

export const UserWithPFPInCell: FC<IUserWithPFPInCell> = ({ 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 ? (
<Flex gap='12px' alignItems='center'>
<StyledPFP pfpToken={pfpToken} />
<Link href={addressToUserView(user?.walletAddress?.toLowerCase())}>
{name || '\u200C'}{' '}
<Link href={userProfileLink}>
{name}{' '}
</Link>
</Flex>
) : (
<NoAvatar>
<Link href={addressToUserView(user?.walletAddress?.toLowerCase())}>
{name || '\u200C'}{' '}
<Link href={userProfileLink}>
{name}{' '}
</Link>
</NoAvatar>
);
Expand Down

0 comments on commit ee2936f

Please sign in to comment.