Skip to content

Commit

Permalink
fix: auto close SearchModal
Browse files Browse the repository at this point in the history
  • Loading branch information
vien.nguyen2-tiki committed Feb 2, 2023
1 parent 2500870 commit cd13473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Search/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ export default function SearchModal({ open, closeModal }: SearchModalProps) {
} else if (validator) {
key = LinkMaker.address(validator)
}
if (key) router.push(key)
if (key) {
router.push(key)
closeModal()
}
}

const _inputChange = (event: React.FormEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit cd13473

Please sign in to comment.