Skip to content

Commit

Permalink
🐛 Fix case where user click elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Dec 19, 2024
1 parent adc2dff commit 5fcbb34
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const Recipient = ({
const handleChange = useCallback(
(e: React.ChangeEvent<HTMLInputElement>) => {
e.preventDefault();
console.log("called");
setValue(e.target.value);
setSelectedName("");
setWarning("");
Expand All @@ -92,7 +91,10 @@ export const Recipient = ({

const handleBlur = useCallback(() => {
setFocus(false);
}, [setFocus]);
if (!hover) {
handleClear();
}
}, [setFocus, hover, handleClear]);

const handleClick = useCallback(() => {
setTo(address);
Expand Down

0 comments on commit 5fcbb34

Please sign in to comment.