Dont display progress if we dont have total items

This commit is contained in:
Jackson Harper
2024-11-02 16:19:27 +08:00
parent c10bd80149
commit 7348c66e43

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' }}>