diff --git a/src/app/components/image-viewer.tsx b/src/app/components/image-viewer.tsx index b7f9e2d..c53e704 100644 --- a/src/app/components/image-viewer.tsx +++ b/src/app/components/image-viewer.tsx @@ -51,7 +51,7 @@ export default function ImageViewer({ src, alt, width, height, className, images // Scroll snaps setScrollSnaps(emblaApi.scrollSnapList()); emblaApi.on("select", () => setSelectedIndex(emblaApi.selectedScrollSnap())); - }, [emblaApi]); + }, [emblaApi, images, src]); return ( <> diff --git a/src/app/components/profile-settings/index.tsx b/src/app/components/profile-settings/index.tsx index 272ce04..976b3f9 100644 --- a/src/app/components/profile-settings/index.tsx +++ b/src/app/components/profile-settings/index.tsx @@ -105,7 +105,7 @@ export default function ProfileSettings() { >
New display name:
-'{displayName}'
+'{displayName}'
New username:
-'@{username}'
+'@{username}'