From 96d2d089b70a2e41b4067be43c6cb354fdb5d231 Mon Sep 17 00:00:00 2001 From: abhinav-grd Date: Mon, 13 Sep 2021 11:02:19 +0530 Subject: [PATCH] removes unneccessary exif Data null check --- src/components/PhotoSwipe/PhotoSwipe.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/PhotoSwipe/PhotoSwipe.tsx b/src/components/PhotoSwipe/PhotoSwipe.tsx index 33183d18e..43c1d669d 100644 --- a/src/components/PhotoSwipe/PhotoSwipe.tsx +++ b/src/components/PhotoSwipe/PhotoSwipe.tsx @@ -273,9 +273,7 @@ function PhotoSwipe(props: Iprops) { return; } exifData.raw = prettyPrintExif(exifData); - if (exifData) { - setExif(exifData); - } + setExif(exifData); }); } }, 100);