Skip to content

Commit

Permalink
Frontend: update AttemptDetails.tsx (airbytehq#15795)
Browse files Browse the repository at this point in the history
Show 0 bytes for cancelled sync job
  • Loading branch information
robgleason authored and robbinhan committed Sep 29, 2022
1 parent 733c07c commit dc020d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const AttemptDetails: React.FC<IProps> = ({ attempt, className, configType }) =>

const formatBytes = (bytes?: number) => {
if (!bytes) {
return <FormattedMessage id="sources.countBytes" values={{ count: bytes }} />;
return <FormattedMessage id="sources.countBytes" values={{ count: bytes || 0 }} />;
}

const k = 1024;
Expand Down

0 comments on commit dc020d0

Please sign in to comment.