From c4e7e7d13b8a43d467e2e6f9d91e6bc2a96eb9b7 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Tue, 25 Jul 2023 09:42:53 -0500 Subject: [PATCH] fix(file-upload): [closes #122] prevent file picker from getting stuck (#131) --- src/components/Room/RoomFileUploadControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Room/RoomFileUploadControls.tsx b/src/components/Room/RoomFileUploadControls.tsx index 161b1ea..b66ad27 100644 --- a/src/components/Room/RoomFileUploadControls.tsx +++ b/src/components/Room/RoomFileUploadControls.tsx @@ -51,7 +51,7 @@ export function RoomFileUploadControls({ const handleFileSelect: ChangeEventHandler = e => { const { files } = e.target - if (!files) return + if (!files || files.length < 1) return handleFileShareStart(files) }