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