Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Change type of the event
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofwolski committed Mar 22, 2022
1 parent 4d61f4b commit 40a17b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/product/VariantSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const VariantSelector = ({
return null;
}

const onChange = (event: React.FormEvent<HTMLSelectElement>) => {
const target = event.target as HTMLSelectElement;
const onChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
const target = event.target;
setValue(target.value);
let query = {};
if (target.value !== "None") {
Expand Down

0 comments on commit 40a17b7

Please sign in to comment.