mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 23:28:56 +03:00
avoid rendering emptry view if no bot comments
This commit is contained in:
parent
75fe3defbb
commit
dc87ed2c5f
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user