Skip to content

Commit

Permalink
Disable selecting incorrect address in send funds recipient (#1731)
Browse files Browse the repository at this point in the history
* fix: prevent ability to set incorrectly formatted address

* fix: spacing issue on account row
  • Loading branch information
chidg authored Dec 6, 2024
1 parent 995781a commit 92dc525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const AccountRow: FC<AccountRowProps> = ({
genesisHash={account.genesisHash}
className="!text-lg"
/>
<div className="flex grow items-center overflow-hidden">
<div className="flex grow items-center justify-between overflow-hidden">
<div className="flex flex-col space-y-2">
<div className="flex items-center gap-2">
<div className="truncate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ export const SendFundsRecipientPicker = () => {
)

const handleSubmitSearch = useCallback(() => {
if (isValidAddressInput) set("to", search, true)
}, [isValidAddressInput, search, set])
if (isValidAddressInput && isValidSubstrateNetworkAddressInput) set("to", search, true)
}, [isValidAddressInput, isValidSubstrateNetworkAddressInput, search, set])

return (
<div className="flex h-full min-h-full w-full flex-col overflow-hidden">
Expand Down

0 comments on commit 92dc525

Please sign in to comment.