From 496c402177b656e1281af00f708971eb5058ad46 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 3 Feb 2022 13:35:06 +0530 Subject: [PATCH] fix variable name --- src/components/PhotoFrame.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PhotoFrame.tsx b/src/components/PhotoFrame.tsx index 63637b6a3..0f416abd5 100644 --- a/src/components/PhotoFrame.tsx +++ b/src/components/PhotoFrame.tsx @@ -117,10 +117,10 @@ const PhotoFrame = ({ router.events.on('hashChangeComplete', (url: string) => { const start = url.indexOf('#'); const hash = url.slice(start !== -1 ? start : url.length); - const photoSwipeShouldBeOpened = hash.endsWith( + const shouldPhotoSwipeBeOpened = hash.endsWith( PHOTOSWIPE_HASH_SUFFIX ); - if (photoSwipeShouldBeOpened) { + if (shouldPhotoSwipeBeOpened) { setOpen(true); } else { setOpen(false);