Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 29b3139

Browse files
committed
fix: broken isAddressEqual
1 parent 8248da2 commit 29b3139

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/hooks/useIsSelf.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from "react"
22
import { CharacterEntity } from "crossbell"
33
import { useAccountState } from "@crossbell/connect-kit"
4-
import { isAddressEqual, Address } from "viem"
54

65
export function useIsSelf(character: CharacterEntity | null | undefined) {
76
const account = useAccountState((s) => s.computed.account)
@@ -11,10 +10,7 @@ export function useIsSelf(character: CharacterEntity | null | undefined) {
1110
case "email":
1211
return character?.characterId === account.characterId
1312
case "wallet":
14-
return isAddressEqual(
15-
account.handle as Address,
16-
(character?.handle ?? "") as Address,
17-
)
13+
return account.handle === character?.handle
1814
default:
1915
return false
2016
}

0 commit comments

Comments
 (0)