From 520a5dc9f2f3fd09f707b32d9e204891b7a636f8 Mon Sep 17 00:00:00 2001 From: Paul Kinlan Date: Thu, 21 Feb 2019 21:27:59 +0000 Subject: [PATCH] nggggg - file length === 0 --- src/components/App/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index bd58ee94..6bbc77e8 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -75,7 +75,7 @@ export default class App extends Component { @bind private onFileDrop({ files }: FileDropEvent) { - if (!files || files.length > 0) return; + if (!files || files.length === 0) return; const file = files[0]; this.openEditor(); this.setState({ file });