Skip to content

Commit

Permalink
ev not optional in handleSubmit (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Oct 4, 2024
1 parent 843524d commit 15a52f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popup/components/ConnectWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ export const ConnectWalletForm = ({
[saveValue, currencySymbol, toErrorInfo],
);

const handleSubmit = async (ev?: React.FormEvent<HTMLFormElement>) => {
ev?.preventDefault();
const handleSubmit = async (ev: React.FormEvent<HTMLFormElement>) => {
ev.preventDefault();

const errWalletAddressUrl = validateWalletAddressUrl(walletAddressUrl);
const errAmount = validateAmount(amount, currencySymbol.symbol);
Expand Down

0 comments on commit 15a52f2

Please sign in to comment.