Skip to content

Commit

Permalink
refactor: desctructure event.target.value
Browse files Browse the repository at this point in the history
More in line with react conventions
  • Loading branch information
sripwoud committed Jun 27, 2024
1 parent 0ca4c05 commit 4b1996f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/containers/FileSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export function FileSelect() {
const { selectedFile, setSelectedFile, tickedDownloadAll, toggleTickedDownloadAll } = useStore()
const { data: files, isLoading, isFetched, isSuccess, isError, error } = useFiles()
const onSelectChange = (e: ChangeEvent<HTMLSelectElement>) => {
const file = e.target as HTMLSelectElement
setSelectedFile(file.value)
const { value } = e.target as HTMLSelectElement
setSelectedFile(value)
}

if (isLoading) return <div>Loading...</div>
Expand Down

0 comments on commit 4b1996f

Please sign in to comment.