diff --git a/FE/src/components/Mypage/AccountCondition.tsx b/FE/src/components/Mypage/AccountCondition.tsx index 8f84a4f..18569b9 100644 --- a/FE/src/components/Mypage/AccountCondition.tsx +++ b/FE/src/components/Mypage/AccountCondition.tsx @@ -52,7 +52,7 @@ export default function AccountCondition({ asset }: AccountConditionProps) {
- {total_profit_rate}% + {(+total_profit_rate > 0 ? '+' : '') + total_profit_rate}%
diff --git a/FE/src/components/Mypage/MyStocksList.tsx b/FE/src/components/Mypage/MyStocksList.tsx index 1061edf..8d1a803 100644 --- a/FE/src/components/Mypage/MyStocksList.tsx +++ b/FE/src/components/Mypage/MyStocksList.tsx @@ -49,7 +49,7 @@ export default function MyStocksList({ stocks }: MyStocksListProps) {- {stockYield.toFixed(2)}% + {(stockYield > 0 ? '+' : '') + stockYield.toFixed(2)}%
);