fixed currency filter

This commit is contained in:
Gerard 2018-11-19 09:45:37 +01:00
parent 24451999a9
commit 207a2d40e5
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import ngModule from '../module';
*/ */
export default function currency() { export default function currency() {
return function(input, symbol, fractionSize) { return function(input, symbol, fractionSize) {
if (input === undefined || input === '') if (input === undefined || input === null || input === '')
return undefined; return undefined;
if (typeof input == 'number' && fractionSize) if (typeof input == 'number' && fractionSize)
input = input.toFixed(fractionSize); input = input.toFixed(fractionSize);