diff --git a/client/core/src/filters/currency.js b/client/core/src/filters/currency.js index a6581830e..c3b9c3873 100644 --- a/client/core/src/filters/currency.js +++ b/client/core/src/filters/currency.js @@ -7,8 +7,8 @@ import ngModule from '../module'; */ export default function currency() { return function(input, symbol, fractionSize) { - if (input == null || input === '') - return null; + if (input === undefined || input === '') + return undefined; if (typeof input == 'number' && fractionSize) input = input.toFixed(fractionSize); return `${input} ${symbol}`; diff --git a/client/core/src/filters/index.js b/client/core/src/filters/index.js index 80219b5d2..4ce3c9020 100644 --- a/client/core/src/filters/index.js +++ b/client/core/src/filters/index.js @@ -3,4 +3,4 @@ import './ucwords'; import './dash-if-empty'; import './dateTime'; import './percentage'; -// import './currency'; +import './currency';