fixed currency filter
This commit is contained in:
parent
24451999a9
commit
207a2d40e5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue