From fd199ee2b454c693178eb89e8729fcf137422f17 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 25 Jun 2024 16:54:42 +0200 Subject: [PATCH] Proof card: if proof location missing, try to get from price object --- 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() {