fix emote array load

This commit is contained in:
3zachm 2022-12-12 01:19:17 -08:00
parent 1bf530a6cc
commit ff575b3d64

View file

@ -62,7 +62,8 @@ const Home: NextPageWithLayout = () => {
className="ml-4 mr-6" className="ml-4 mr-6"
/> />
); );
if (emotesUrls) { // if the emotes are loaded, show the slideshow
if (emotesUrls.length > 0) {
slideShow = ( slideShow = (
<Image <Image
src={emotesUrls[currentEmote]} src={emotesUrls[currentEmote]}