From 3f335b2ef1dfac770e61dbd8b647df2149d41d21 Mon Sep 17 00:00:00 2001 From: streamich Date: Mon, 8 Jul 2019 11:42:44 +0200 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20fix=20Prettier=20"error?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/useSize.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useSize.tsx b/src/useSize.tsx index 4079dbf4..6a50b044 100644 --- a/src/useSize.tsx +++ b/src/useSize.tsx @@ -47,7 +47,7 @@ const useSize = ( useEffect(() => { const iframe: HTMLIFrameElement | null = ref.current; - if(!iframe) { + if (!iframe) { // iframe will be undefined if component is already unmounted return; }