Adressing smaller review comments

This commit is contained in:
Surma
2018-07-16 13:55:32 +01:00
parent b310c97044
commit b15545402a
7 changed files with 9 additions and 11 deletions

View File

@@ -184,7 +184,6 @@ export default class App extends Component<Props, State> {
if (!decoder) {
throw new Error('Cant find a decoder for the given file');
}
console.log(`Decoding using ${decoder.name}`);
const bmp = await decoder.decode(file);
// compute the corresponding ImageData once since it only changes when the file changes:
const data = await bitmapToImageData(bmp);
@@ -251,7 +250,7 @@ export default class App extends Component<Props, State> {
loadedCounter: loadingCounter,
};
this.setState({ images });
this.setState({ images, error: '' });
}
render({ }: Props, { loading, error, images }: State) {