[지라이슈없음] 통화 기호 및 화폐 단위 표기법 수정
This commit is contained in:
@@ -498,7 +498,13 @@ export const formatCurrencyValue = (
|
||||
if (isNaN(numValue)) return "-";
|
||||
|
||||
const sign = isDiscount && numValue > 0 ? "- " : "";
|
||||
const formattedValue = numValue.toFixed(2);
|
||||
const formattedValue = parseFloat(numValue.toFixed(2)).toLocaleString(
|
||||
"en-US",
|
||||
{
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}
|
||||
);
|
||||
|
||||
if (!currSign || !currSignLoc) return `${sign}${formattedValue}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user