Skip to content

Commit

Permalink
feat: added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony23991 committed Dec 3, 2024
1 parent 6e49774 commit 1fb2493
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const NewConversation: React.FC<NewConversationProps> = ({
value: debouncedAddress,
} = useDebounced<string>(newAddress, 500);

// TODO: change to regex
const isAddressName = useMemo(() => {
return !debouncedAddress.startsWith("0x") && !debouncedAddress.startsWith("0X") && debouncedAddress.length > 0;
}, [debouncedAddress])
Expand Down

0 comments on commit 1fb2493

Please sign in to comment.