import weightUtils from './weight.js'; export default { data() { return { }; }, methods: { }, filters: { displayWeight(mg, unit) { return weightUtils.MgToWeight(mg, unit) || 0; }, displayPrice(price, symbol) { let amount = '0.00'; if (typeof price === 'number') { amount = price.toFixed(2); } return amount+' '+symbol; }, }, };