Skip to content

Commit

Permalink
[Issue-2617] Fix error with input address
Browse files Browse the repository at this point in the history
  • Loading branch information
S2kael committed Feb 23, 2024
1 parent 458f6e6 commit 77288ae
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/extension-koni-ui/src/components/Field/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,14 @@ function Component (props: Props, ref: ForwardedRef<InputRef>): React.ReactEleme
parseAndChangeValue(address);
inputRef?.current?.focus();
inputRef?.current?.blur();
} else {
if (isAddress(value)) {
parseAndChangeValue(value);
}
}
}
}, [_contacts, addressPrefix, value, parseAndChangeValue, inputRef, networkGenesisHash]);

useEffect(() => {
if (isAddress(value)) {
parseAndChangeValue(value);
}
}, [value, parseAndChangeValue]);

// todo: Will work with "Manage address book" feature later
return (
<>
Expand Down

0 comments on commit 77288ae

Please sign in to comment.