Skip to content

Commit

Permalink
chore: use destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
sztok7 authored and mpetrunic committed Jan 23, 2024
1 parent 63cd26e commit 46a170e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class NetworkSelector extends LitElement {
})
networks: Domain[] = [];

onChange(event: Event): void {
const { value } = event.target as HTMLOptionElement;
onChange({ target }: Event): void {
const { value } = target as HTMLOptionElement;
const network = this.networks.find((n) => String(n.chainId) == value);
this.onNetworkSelected?.(network);
}
Expand Down

0 comments on commit 46a170e

Please sign in to comment.