Skip to content

Commit

Permalink
fix(DragDrop): Incorrect drag validtion
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin-pc committed Sep 6, 2021
1 parent c685799 commit 8517293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FileUpload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const FileUpload: FC = ({ children }) => {
onDragOver={handleDragOver}
>
{children}
{dragging >= 0 && (
{dragging > 0 && (
<div className={[styles.dropzone, highlightClass].join(' ')}>
<Icon size={40} icon="file" />
Drop your config file here
Expand Down

0 comments on commit 8517293

Please sign in to comment.