주식 보유 카드 UI 수정 & 평가 금액 추가

This commit is contained in:
2026-02-26 01:54:09 +09:00
parent 3e9112c4c7
commit 840b0a5300
2 changed files with 111 additions and 61 deletions

View File

@@ -742,6 +742,14 @@ const StockTrade = () => {
: '조회 실패'}
</strong>
</div>
<div className="stock-holdings__metric">
<span>평가금액</span>
<strong>
{item.current_price != null && item.quantity != null
? formatNumber(item.current_price * item.quantity)
: '-'}
</strong>
</div>
<div className="stock-holdings__metric">
<span>수익률</span>
<strong
@@ -904,6 +912,14 @@ const StockTrade = () => {
{formatNumber(getCurrentPrice(item))}
</strong>
</div>
<div className="stock-holdings__metric">
<span>평가금액</span>
<strong>
{getCurrentPrice(item) != null && getQty(item) != null
? formatNumber(toNumeric(getCurrentPrice(item)) * toNumeric(getQty(item)))
: '-'}
</strong>
</div>
<div className="stock-holdings__metric">
<span>수익률</span>
<strong