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);