diff --git a/client/src/templates/Carousel.tsx b/client/src/templates/Carousel.tsx index 23d994e..5b99805 100644 --- a/client/src/templates/Carousel.tsx +++ b/client/src/templates/Carousel.tsx @@ -37,7 +37,7 @@ const Carousel = (props: ImageProps) => { key={index} src={image} alt="Slide" - onError={image} + onError={imageError} className={`${styles.slides} ${currentIndex === index ? styles.fadeIn : styles.fadeOut}`} /> ))}