Skip to content

Commit

Permalink
[Boost] Fix weird rounding on pricing. (#30118)
Browse files Browse the repository at this point in the history
* Do not divide the annual price AFTER formatting

* changelog

---------

Co-authored-by: Mark George <[email protected]>
  • Loading branch information
thingalon and Mark George authored Apr 17, 2023
1 parent a3d0925 commit c12a8e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
$: currencyObjectAfter = getCurrencyObject(
$config.pricing.yearly.priceAfter,
$config.pricing.yearly.priceAfter / 12,
$config.pricing.yearly.currencyCode
);
</script>
Expand All @@ -33,7 +33,7 @@
{sprintf(
/* translators: %s is the price including the currency symbol in front. */
__( `Upgrade now only %s`, 'jetpack-boost' ),
currencyObjectAfter.symbol + currencyObjectAfter.integer / 12
currencyObjectAfter.symbol + currencyObjectAfter.integer + currencyObjectAfter.fraction
)}
</p>
</div>
Expand Down
5 changes: 5 additions & 0 deletions projects/plugins/boost/changelog/boost-fix-pricing
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Fix pricing display, getting cherry-picked to 1.8.0 w/o changelog


0 comments on commit c12a8e2

Please sign in to comment.