[Object Object] 표시 오류 수정: Intl.NumberFormat 사용

This commit is contained in:
Jay Sheen
2025-10-30 10:19:25 +09:00
parent 3dbd6b4dda
commit 2553aca4de
17 changed files with 47 additions and 47 deletions

View File

@@ -47,7 +47,7 @@ export const TitleInfoWrap = ({
<>
<div className="num-amount">
<span className="amount-text">
{t('home.money', { value: <NumericFormat value={titleInfo?.amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(titleInfo?.amount || 0) })}
</span>
</div>
<div className="num-store">{titleInfo?.corpName}</div>
@@ -59,7 +59,7 @@ export const TitleInfoWrap = ({
<>
<div className="num-amount">
<span className="amount-text">
{t('home.money', { value: <NumericFormat value={titleInfo?.amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(titleInfo?.amount || 0) })}
</span>
</div>
<div className="num-store">{titleInfo?.corpName}</div>

View File

@@ -557,7 +557,7 @@ export const ListItem = ({
else if (additionalServiceCategory === AdditionalServiceCategory.KeyInPayment) {
rs.push(
<div className="transaction-amount">
{t('home.money', { value: <NumericFormat value={amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(amount || 0) })}
</div>
);
}
@@ -566,7 +566,7 @@ export const ListItem = ({
) {
rs.push(
<div className="transaction-amount">
{t('home.money', { value: <NumericFormat value={amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(amount || 0) })}
</div>
);
}
@@ -576,7 +576,7 @@ export const ListItem = ({
key="payout-item-amount"
className="transaction-amount"
>
{t('home.money', { value: <NumericFormat value={amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(amount || 0) })}
</div>
);
}
@@ -588,7 +588,7 @@ export const ListItem = ({
key="fund-account-transfer-amount"
className="transaction-amount"
>
{t('home.money', { value: <NumericFormat value={amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(amount || 0) })}
</div>
);
}
@@ -598,7 +598,7 @@ export const ListItem = ({
key="payout-item-amount"
className="transaction-amount"
>
{t('home.money', { value: <NumericFormat value={amount} thousandSeparator displayType="text" /> })}
{t('home.money', { value: new Intl.NumberFormat('en-US').format(amount || 0) })}
</div>
);
}