Skip to content

Commit 9ae9571

Browse files
update EIK, and fix up reading undefined from account.ens
1 parent 7322986 commit 9ae9571

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@vercel/kv": "^3.0.0",
3838
"caniuse-lite": "^1.0.30001687",
3939
"clsx": "^2.1.0",
40-
"ethereum-identity-kit": "^0.2.66",
40+
"ethereum-identity-kit": "^0.2.67",
4141
"i18next": "^23.11.5",
4242
"i18next-browser-languagedetector": "^8.0.0",
4343
"i18next-http-backend": "^2.5.2",

src/app/api/top-eight/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export async function GET(req: NextRequest) {
309309

310310
// Process user account data
311311
if (userAccountData?.ens?.name) {
312-
userName = userAccountData.ens.name
312+
userName = userAccountData.ens?.name
313313
} else if (isAddress(user)) {
314314
userName = truncateAddress(user) || user
315315
} else {

src/app/og/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function GET(req: NextRequest) {
3333
const response = await getResponse()
3434

3535
const fetchedUser = response.address
36-
? response.ens.name || truncateAddress(response.address)
36+
? response.ens?.name || truncateAddress(response.address)
3737
: isAddress(user)
3838
? truncateAddress(user)
3939
: ens_beautify(user)

src/components/user-profile-card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const UserProfileCard: React.FC<UserProfileCardProps> = ({
105105
customFollowButton: (
106106
<div className='mt-16'>
107107
{isConnectedUserCard ? (
108-
<Link href={`https://app.ens.domains/${profile.ens.name}`} target='_blank'>
108+
<Link href={`https://app.ens.domains/${profile.ens?.name}`} target='_blank'>
109109
<button className='flex items-center gap-1 rounded-sm bg-[#0080BC] p-1.5 py-2 font-semibold text-white transition-all hover:scale-110 hover:bg-[#07A9F5]'>
110110
<EnsLogo className='h-auto w-5' />
111111
<p>Edit Profile</p>

0 commit comments

Comments
 (0)