Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Fixing a second whoopsie.

Paul Kinlan7af949b5a50b
diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx
index 67641f90..bd58ee94 100644
--- a/src/components/App/index.tsx
+++ b/src/components/App/index.tsx
@@ -75,7 +75,7 @@ export default class App extends Component<Props, State> {
@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 });