From 73e9dc4074a2e657bf92b4d5e98d76814e6f8ec9 Mon Sep 17 00:00:00 2001 From: swayangjit Date: Fri, 14 Sep 2018 14:56:35 +0530 Subject: [PATCH] Issue #SB-7261 fix: Update size showing {{%s}} issue fixed . --- src/pipes/file-size/file-size.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipes/file-size/file-size.ts b/src/pipes/file-size/file-size.ts index 217707d71..e78cf48a9 100644 --- a/src/pipes/file-size/file-size.ts +++ b/src/pipes/file-size/file-size.ts @@ -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;