|
display={data.length > size ? 'flex' : 'none'} |
data is an array of array so you need to access the first item of data to actually get the size of the comment list. Something like:
display={data && data[data.length - 1]?.length > size ? 'flex' : 'none'}
convosdk/packages/react/src/components/CommentSection.tsx
Line 229 in 8335743
data is an array of array so you need to access the first item of data to actually get the size of the comment list. Something like:
display={data && data[data.length - 1]?.length > size ? 'flex' : 'none'}