Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Oct 8, 2024
1 parent acd90e3 commit a0a5a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Checkboxes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react'
import React, { ChangeEvent, useEffect, useState } from 'react'
import { v4 } from 'uuid'

import styles from '../styles/Checkboxes.module.css'
Expand Down Expand Up @@ -28,7 +28,7 @@ const Checkboxes = ({

const uuid = v4()

const onSelectionChange = (e) => {
const onSelectionChange = (e: ChangeEvent<HTMLInputElement>) => {
const index = parseInt((e.target as HTMLInputElement).value)
const clonedSelectedOptions = Array.from(selectedOptions)
clonedSelectedOptions[index] = !clonedSelectedOptions[index]
Expand Down

0 comments on commit a0a5a5b

Please sign in to comment.