Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove console log in UserWithPFPInCell.tsx #2905

Merged
merged 3 commits into from
Aug 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

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}>

Check failure on line 26 in src/components/UserWithPFPInCell.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `⏎↹↹↹↹{name}{'·'}⏎↹↹↹` with `{name}·`
{name}{' '}
</Link>
</Flex>
) : (
<NoAvatar>
<Link href={addressToUserView(user?.walletAddress?.toLowerCase())}>
{name || '\u200C'}{' '}
<Link href={userProfileLink}>

Check failure on line 32 in src/components/UserWithPFPInCell.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `⏎↹↹↹↹{name}{'·'}⏎↹↹↹` with `{name}·`
{name}{' '}
</Link>
</NoAvatar>
);
Expand Down
Loading