From 76cb795c4daa052a67c4eb50488e4af79418e295 Mon Sep 17 00:00:00 2001 From: dongree Date: Thu, 5 Dec 2024 11:01:52 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20add:=20=EC=88=98=EC=9D=B5=EB=A5=A0?= =?UTF-8?q?=20positive=EC=9D=BC=20=EB=95=8C=20+=20=EB=B6=99=EC=9D=B4?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/components/Mypage/AccountCondition.tsx | 2 +- FE/src/components/Mypage/MyStocksList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FE/src/components/Mypage/AccountCondition.tsx b/FE/src/components/Mypage/AccountCondition.tsx index 8f84a4fa..18569b95 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 1061edfa..8d1a8036 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)}%

);