From de826dc561cb877c075b1d405c4ba0c7d284265b Mon Sep 17 00:00:00 2001 From: Alexander Biraben-Renard Date: Fri, 30 Aug 2024 14:59:42 +0100 Subject: [PATCH] chore: fix type errors --- components/EditCompany.tsx | 2 +- components/FileViewer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/EditCompany.tsx b/components/EditCompany.tsx index d78e6f53..9fa495d7 100644 --- a/components/EditCompany.tsx +++ b/components/EditCompany.tsx @@ -67,7 +67,7 @@ const EditCompanyForm = ({ close, prevCompanyProfile }: { close: () => void; pre - + diff --git a/components/FileViewer.tsx b/components/FileViewer.tsx index da29f3d1..beaea967 100644 --- a/components/FileViewer.tsx +++ b/components/FileViewer.tsx @@ -29,7 +29,7 @@ export const FileViewer = ({ fileUrl, title, children }: { fileUrl: string; titl setIsImage(blob.type.match(/^image\//)) }) } - }, []) + }, [fileUrl, isImage]) const close = () => setOpenState(false) return (