hh-ui-components
Version:
15 lines • 509 B
JavaScript
;
exports.__esModule = true;
exports.formatPrice = void 0;
var formatPrice = function (price) {
try {
var priceFormatTemplate = "%@ €";
var selPrice = price ? (Math.round(price * 100) / 100).toFixed(2) : 0;
return priceFormatTemplate === null || priceFormatTemplate === void 0 ? void 0 : priceFormatTemplate.replace("%@", selPrice.toString());
}
catch (e) {
return;
}
};
exports.formatPrice = formatPrice;
//# sourceMappingURL=ProductHelper.js.map