Merge pull request #4485 from omnivore-app/jacksonh/export-total-items

Dont display progress if we dont have total items
This commit is contained in:
Jackson Harper
2024-11-02 17:07:18 +08:00
committed by GitHub

View File

@ -543,7 +543,7 @@ const ExportSection = (): JSX.Element => {
{timeAgo(item.createdAt)}
</SpanBox>
<SpanBox css={{ width: '180px' }}>{item.state}</SpanBox>
{item.totalItems && (
{item.totalItems && item.totalItems > 0 ? (
<VStack css={{ width: '180px', height: '50px', pt: '12px' }}>
<ProgressBar
fillPercentage={
@ -559,6 +559,8 @@ const ExportSection = (): JSX.Element => {
} items.`}
</StyledText>
</VStack>
) : (
<></>
)}
{item.signedUrl && (
<SpanBox css={{ marginLeft: 'auto' }}>