Skip to content

Commit

Permalink
fix: avatar on fee recipient list
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Dec 3, 2023
1 parent 5bd633b commit 375e8bb
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { POLYGONSCAN_URL } from '@hey/data/constants';
import type { Profile, RecipientDataOutput } from '@hey/lens';
import { useProfilesQuery } from '@hey/lens';
import formatAddress from '@hey/lib/formatAddress';
import getLennyURL from '@hey/lib/getLennyURL';
import getAvatar from '@hey/lib/getAvatar';
import getProfile from '@hey/lib/getProfile';
import getStampFyiURL from '@hey/lib/getStampFyiURL';
import Link from 'next/link';
Expand Down Expand Up @@ -54,11 +54,7 @@ const Splits: FC<SplitsProps> = ({ recipients }) => {
<>
<img
className="h-5 w-5 rounded-full border bg-gray-200 dark:border-gray-700"
src={
profile
? getLennyURL(profile.id)
: getStampFyiURL(address)
}
src={profile ? getAvatar(profile) : getStampFyiURL(address)}
alt="Avatar"
/>
{profile ? (
Expand Down

0 comments on commit 375e8bb

Please sign in to comment.