From 207a2d40e56ed75ae3d17c5ad7fbe07ad5986337 Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 19 Nov 2018 09:45:37 +0100 Subject: [PATCH] fixed currency filter --- client/core/src/filters/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/core/src/filters/currency.js b/client/core/src/filters/currency.js index c3b9c3873..f96963882 100644 --- a/client/core/src/filters/currency.js +++ b/client/core/src/filters/currency.js @@ -7,7 +7,7 @@ import ngModule from '../module'; */ export default function currency() { return function(input, symbol, fractionSize) { - if (input === undefined || input === '') + if (input === undefined || input === null || input === '') return undefined; if (typeof input == 'number' && fractionSize) input = input.toFixed(fractionSize);