Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Sep 24, 2024
1 parent df8ceb7 commit 4416f96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions static/components/item-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ window.app.component('item-list', {
data: function () {
return {}
},
computed: {
},
computed: {},
methods: {
taxString(item) {
return `tax ${this.inclusive ? 'incl.' : 'excl.'} ${item.tax ? item.tax + '%' : ''}`
return `tax ${this.inclusive ? 'incl.' : 'excl.'} ${item.tax ? item.tax + '%' : ''}`
},
formatPrice(item) {
return `Price w/ tax: ${this.format(item.price * (1 + item.tax * 0.01), this.currency)}`
return `Price w/ tax: ${this.format(item.price * (1 + item.tax * 0.01), this.currency)}`
},
addToCart(item) {
this.$emit('add-product', item)
Expand Down

0 comments on commit 4416f96

Please sign in to comment.