From 2d7dece4f0474267dea537e12b8f2e1cab80232e Mon Sep 17 00:00:00 2001 From: Siddharth Tiwari Date: Sat, 13 Jan 2024 20:57:42 +0530 Subject: [PATCH] chore: misc changes --- apps/dashboard/components/upload-button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/components/upload-button.tsx b/apps/dashboard/components/upload-button.tsx index 6eecbccdae..f73086c127 100644 --- a/apps/dashboard/components/upload-button.tsx +++ b/apps/dashboard/components/upload-button.tsx @@ -28,9 +28,9 @@ export default function FileUpload({ } } - const handleDragOver = (event: React.DragEvent) => { + const handleDragOver = async (event: React.DragEvent) => { event.preventDefault() - handleDragOver(event) + await handleDragOver(event) } const handleDrop = async (event: React.DragEvent) => {