Skip to content

Commit

Permalink
chore: trim hook url
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Sep 24, 2024
1 parent 442283a commit 526a7fc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export function AddExternalHookForm({
)}
<Wrapper>
{isSearchOpen && (
<SearchInput type="text" placeholder="Enter a hook dapp URL" onChange={(e) => setInput(e.target.value)} />
<SearchInput
type="text"
placeholder="Enter a hook dapp URL"
onChange={(e) => setInput(e.target.value?.trim())}
/>
)}
{input && !isUrlValid && (
<InlineBanner bannerType="danger" hideIcon>
Expand Down

0 comments on commit 526a7fc

Please sign in to comment.