Skip to content

Commit

Permalink
Update examples/with-cloudinary/pages/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Novotny <manovotny@gmail.com>
  • Loading branch information
Nutlope and manovotny committed Dec 1, 2022
1 parent ad9553b commit 7740ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-cloudinary/pages/index.tsx
Expand Up @@ -18,7 +18,7 @@ const Home: NextPage = ({ images }: { images: ImageProps[] }) => {
const [lastViewedPhoto, setLastViewedPhoto] = useLastViewedPhoto()

useEffect(() => {
// This effect keeps track of the last viewed photo in tshe modal to keep the index page in sync when the user navigates back
// This effect keeps track of the last viewed photo in the modal to keep the index page in sync when the user navigates back
if (lastViewedPhoto && !photoId) {
document
.querySelector(`#photo-${lastViewedPhoto}`)
Expand Down

0 comments on commit 7740ff4

Please sign in to comment.