#806 reactivar filtro currency

This commit is contained in:
Gerard 2018-11-16 12:40:02 +01:00
parent 4efd863716
commit a546812087
2 changed files with 3 additions and 3 deletions

View File

@ -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}`;

View File

@ -3,4 +3,4 @@ import './ucwords';
import './dash-if-empty';
import './dateTime';
import './percentage';
// import './currency';
import './currency';