Skip to content

Commit

Permalink
fix(proof card): fill in location data from price if missing from pro…
Browse files Browse the repository at this point in the history
…of (#666)
  • Loading branch information
raphodn committed Jun 25, 2024
1 parent f81dfb3 commit 6748ce0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/PriceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ export default {
},
mounted() {
this.getPriceProductTitle()
// hack: add price.location object to price.proof if missing
if (this.price && this.price.location && this.price.proof && !this.price.proof.location) {
if (this.price.location_id === this.price.proof.location_id) {
this.price.proof.location = this.price.location
}
}
},
methods: {
getPriceProductTitle() {
Expand Down

0 comments on commit 6748ce0

Please sign in to comment.