salix-front/src/filters/dashOrCurrency.js

7 lines
169 B
JavaScript

import toCurrency from './toCurrency';
export default function (value) {
if (value == null || value === '') return () => '-';
return () => toCurrency(value);
}