Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
fix: divide price by 100 when formatting price
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwanp committed Sep 26, 2024
1 parent 6256e16 commit 2ad723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shopkeeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Shopkeeper {
*/
public formatAmount(amount: number, currency?: string): string {
return Intl.NumberFormat(this.config.currencyLocale, { style: 'currency', currency }).format(
amount
amount / 100
)
}

Expand Down

0 comments on commit 2ad723e

Please sign in to comment.