Skip to content

Commit

Permalink
fix: add type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
algoORgoal committed May 10, 2024
1 parent 65ad48d commit d44b719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/booth/ui/EditImageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function EditImageBox() {
]);

const handleFileChange = async (event: ChangeEvent<HTMLInputElement>) => {
const file = event?.target?.files[0];
const file = event.target.files![0];
if (!file) {
return;
}
Expand Down

0 comments on commit d44b719

Please sign in to comment.