Skip to content

Commit

Permalink
[field] Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent dc520e8 commit ab16435
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ export const FileFieldDiff: DiffComponent<ObjectDiff<File>> = ({diff, schemaType

const pctDiff = getSizeDiff(prevSize, nextSize)

const roundedPrevSize = Math.round(prevSize * 10) / 10
const roundedNextSize = Math.round(nextSize * 10) / 10

console.log(`${prevSize} -> ${roundedPrevSize}`, `${nextSize} -> ${roundedNextSize}`)
const roundedPrevSize = prevSize ? Math.round(prevSize * 10) / 10 : undefined
const roundedNextSize = nextSize ? Math.round(nextSize * 10) / 10 : undefined

return (
<div className={styles.root}>
Expand Down

0 comments on commit ab16435

Please sign in to comment.