Skip to content

Commit

Permalink
Merge pull request #246 from Support-pl/dev
Browse files Browse the repository at this point in the history
fixed display of addon prices in OVH
  • Loading branch information
639852 authored Aug 7, 2023
2 parents 6e2d925 + 36c9a7b commit 862ae5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/appMain/ovhCreationTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ export default {
},
addonPrice({ periods }) {
const period = periods.find(({ pricingMode }) => pricingMode === this.mode);
const price = +(period.price.value * this.currency.rate).toFixed(2);
return `${period.price.value} ${this.currency.code}`;
return `${price} ${this.currency.code}`;
},
setResource(value) {
if (this.getPlan.type.includes('vps')) {
Expand Down

0 comments on commit 862ae5e

Please sign in to comment.