Skip to content

Commit beb5ced

Browse files
coreymartinLightspark Eng
authored andcommitted
[core] Add PHP to cent currencies (#15030)
GitOrigin-RevId: 3307d7aa7b51b2f9cb4c59dbaebf0e37e45ebf65
1 parent 36f8306 commit beb5ced

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/utils/currency.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,11 @@ export function formatCurrencyStr(
603603
let { value: num } = currencyAmount;
604604
const { unit } = currencyAmount;
605605

606-
const centCurrencies = [CurrencyUnit.USD, CurrencyUnit.MXN] as string[];
606+
const centCurrencies = [
607+
CurrencyUnit.USD,
608+
CurrencyUnit.MXN,
609+
CurrencyUnit.PHP,
610+
] as string[];
607611
/* centCurrencies are always provided in the smallest unit, e.g. cents for USD. These should be
608612
* divided by 100 for proper display format: */
609613
if (centCurrencies.includes(unit)) {

0 commit comments

Comments
 (0)