perf: nothing for nothing

This commit is contained in:
cha0s 2024-07-24 02:46:44 -05:00
parent 49f46b4b00
commit cbe5f473a6

View File

@ -14,6 +14,9 @@ export default function Dialogues({camera, dialogues, scale}) {
/>
);
}
if (0 === elements.length) {
return false;
}
return <div className={styles.dialogues}>{elements}</div>;
}