Skip to content

Commit

Permalink
fix(Assistants): match price currency with proof currency
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 26, 2024
1 parent cc8d633 commit 6e3ff25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/ContributionAssistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export default {
price: label.price.toString(),
price_per: label.unit,
price_is_discounted: false,
currency: this.appStore.getUserLastCurrencyUsed || 'EUR',
currency: priceTag['proof'].currency || this.appStore.getUserLastCurrencyUsed,
proof: priceTag['proof'],
proofImage: priceTag['proof'].file_path,
product_code: barcodeString,
Expand Down
2 changes: 1 addition & 1 deletion src/views/PriceValidatorAssistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
price: label.price.toString(),
price_per: label.unit,
price_is_discounted: false,
currency: this.appStore.getUserLastCurrencyUsed || 'EUR',
currency: data.items[i]['proof'].currency || this.appStore.getUserLastCurrencyUsed,
proof: data.items[i]['proof'],
proofImage: data.items[i]['proof'].file_path,
// proofImage: 'https://prices.openfoodfacts.org/img/0024/2NToLMxOgN.webp',
Expand Down

0 comments on commit 6e3ff25

Please sign in to comment.