Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Issue #SB-7261 fix: Update size showing {{%s}} issue fixed .
Browse files Browse the repository at this point in the history
  • Loading branch information
swayangjit committed Sep 14, 2018
1 parent 85bee09 commit 73e9dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipes/file-size/file-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class FileSizePipe implements PipeTransform {
* Takes a size and return readable size.
*/
transform(size: any, roundOf: number = 2) {
if (size) {
if (size || size === 0) {
if (isNaN(size))
size = 0;

Expand Down

0 comments on commit 73e9dc4

Please sign in to comment.