Skip to content

Commit

Permalink
Upgrade @relaycc/receiver to 0.1.63
Browse files Browse the repository at this point in the history
  • Loading branch information
killthebuddh4 committed Oct 17, 2022
1 parent 6e42c1c commit ade7b43
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 97 deletions.
161 changes: 140 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@rainbow-me/rainbowkit": "^0.6.0",
"@relaycc/receiver": "^0.1.61",
"@relaycc/receiver": "^0.1.63",
"encoding": "^0.1.13",
"ethers": "^5.7.1",
"framer-motion": "^7.3.5",
Expand Down
14 changes: 9 additions & 5 deletions src/components/cards/ContactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export const ContactCard: FunctionComponent<{
});

const pfp = (() => {
if (ensAvatar.avatar === undefined) {
if (ensAvatar.data === null || ensAvatar.data === undefined) {
return (
<Blockies
className={ensAvatar.status === "fetching" ? "opacity-25" : ""}
className={ensAvatar.isLoading ? "opacity-25" : ""}
seed={address.toLocaleLowerCase()}
size={14}
scale={19}
Expand All @@ -37,7 +37,11 @@ export const ContactCard: FunctionComponent<{
} else {
return (
/* eslint-disable-next-line */
<img className="h-[19rem] w-[19rem]" alt="PFP" src={ensAvatar.avatar} />
<img
className="h-[19rem] w-[19rem]"
alt="PFP"
src={ensAvatar.data || undefined}
/>
);
}
})();
Expand All @@ -59,8 +63,8 @@ export const ContactCard: FunctionComponent<{
>
{typeof display === "string"
? display
: isEnsName(ensName.name)
? ensName.name
: isEnsName(ensName.data)
? ensName.data
: address.slice(0, 6) + "..." + address.slice(-4)}
</button>
</Card>
Expand Down
Loading

2 comments on commit ade7b43

@vercel
Copy link

@vercel vercel bot commented on ade7b43 Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

relay-dev – ./

relay-dev-relaycc.vercel.app
relay-dev.vercel.app
relay-dev-git-main-relaycc.vercel.app
dev.relay.cc

@vercel
Copy link

@vercel vercel bot commented on ade7b43 Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

relay – ./

relay-git-main-relaycc.vercel.app
relay.cc
relay-relaycc.vercel.app
www.relay.cc

Please sign in to comment.