Skip to content

Commit

Permalink
Unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jun 1, 2021
1 parent cac2c25 commit d8e857e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/CheckoutModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
this.price = decimalStr(parseFloat(this.total))
this.$axios
.post("invoices", {
store_id: parseInt(this.$store.state.storeID),
store_id: this.$store.state.storeID,
currency: this.$store.state.store.default_currency,
products: cart,
price: this.price,
Expand Down
2 changes: 1 addition & 1 deletion pages/products/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
if (params.length < 2) {
return error({ statusCode: 404, text: "Product not found" })
}
const productId = parseInt(params.pop())
const productId = params.pop()
store.commit("product/SET_PRODUCT_ID", productId)
if (Number.isNaN(productId)) {
return error({ statusCode: 404, text: "Product not found" })
Expand Down

0 comments on commit d8e857e

Please sign in to comment.