From 0fcadf658e5067d30f9ab805781ae21ce7765e3a Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Thu, 10 Oct 2019 10:56:56 +0530 Subject: [PATCH] fix: minor tweak --- src/ui/component/fileViewerInitiator/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/component/fileViewerInitiator/view.jsx b/src/ui/component/fileViewerInitiator/view.jsx index c61c3d155..887266213 100644 --- a/src/ui/component/fileViewerInitiator/view.jsx +++ b/src/ui/component/fileViewerInitiator/view.jsx @@ -48,7 +48,7 @@ export default function FileViewer(props: Props) { const supported = (IS_WEB && isStreamable) || !IS_WEB; // Wrap this in useCallback because we need to use it to the keyboard effect - // If we don't a new instance will be created for every render and react will think the dependencies have change, which will add/remove the listener for every render + // If we don't a new instance will be created for every render and react will think the dependencies have changed, which will add/remove the listener for every render const viewFile = useCallback( (e?: SyntheticInputEvent<*> | KeyboardEvent) => { if (e) {