Skip to content

[MKT-858]:feat/change round for truncate for formatprice function#1984

Merged
jaaaaavier merged 1 commit into
masterfrom
fix/price-shown-on-checkout
Jun 8, 2026
Merged

[MKT-858]:feat/change round for truncate for formatprice function#1984
jaaaaavier merged 1 commit into
masterfrom
fix/price-shown-on-checkout

Conversation

@jaaaaavier

Copy link
Copy Markdown
Contributor

Description

This PR was created to fix a minor issue with the checkout process, where prices of 1.99 were being displayed as 2. We have modified the formatPrice function so that, from now on, it truncates the number rather than rounding it. This change has also been applied to the website.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

@jaaaaavier jaaaaavier self-assigned this Jun 8, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 03379c3
Status: ✅  Deploy successful!
Preview URL: https://8161e6a1.drive-web.pages.dev
Branch Preview URL: https://fix-price-shown-on-checkout.drive-web.pages.dev

View logs

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@jaaaaavier jaaaaavier marked this pull request as ready for review June 8, 2026 13:29
@jaaaaavier jaaaaavier requested a review from xabg2 as a code owner June 8, 2026 13:29
@jaaaaavier jaaaaavier added the enhancement New feature or request label Jun 8, 2026
@jaaaaavier jaaaaavier merged commit 79bb34f into master Jun 8, 2026
10 of 11 checks passed
@jaaaaavier jaaaaavier deleted the fix/price-shown-on-checkout branch June 8, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants