avoid rendering emptry view if no bot comments

This commit is contained in:
noumantahir 2024-10-09 17:58:48 +05:00
parent 75fe3defbb
commit dc87ed2c5f

View File

@ -10,6 +10,10 @@ interface BotCommentsProps {
export const BotCommentsPreview = ({ comments }: BotCommentsProps) => {
const commentsModalRef = useRef<typeof CommentsModal>();
if(!comments?.length){
return null;
}
return (
<View style={styles.container}>
{comments.map((comment) => {