From 6748ce0c148032bc16f45fd94d1baf9b69070c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Tue, 25 Jun 2024 16:58:54 +0200 Subject: [PATCH] fix(proof card): fill in location data from price if missing from proof (#666) --- src/components/PriceCard.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/PriceCard.vue b/src/components/PriceCard.vue index c95de38464..ed74acdf24 100644 --- a/src/components/PriceCard.vue +++ b/src/components/PriceCard.vue @@ -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() {