Skip to content

Commit

Permalink
update isNameExtendable function
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Nov 7, 2024
1 parent 080a906 commit e9eb2dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/@molecules/NameListView/NameListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export const NameListView = ({ address, selfAddress, setError, setLoading }: Nam
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [stage])

const isNameExtendable = (name: Name) => name.parentName === 'eth'
const isNameExtendable = (name: Name) =>
name.parentName === 'eth' && !!name.labelName && !name.labelName.includes('Invalid ENS Name')

const isNameDisabled = useCallback(
(name: Name) => {
Expand Down

0 comments on commit e9eb2dd

Please sign in to comment.