From 3c26322f52da3047fcc06f3b5ca22bd2c4e9751a Mon Sep 17 00:00:00 2001 From: yeri Date: Wed, 26 Jun 2024 10:14:59 +0900 Subject: [PATCH] =?UTF-8?q?#83=20fix:=20=EC=88=98=EC=9D=B5=EB=A5=A0=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=97=86=EC=9D=84=20=EB=95=8C=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/manage/ManagePage.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/routes/manage/ManagePage.jsx b/src/routes/manage/ManagePage.jsx index ec68e846..18ec2d0b 100644 --- a/src/routes/manage/ManagePage.jsx +++ b/src/routes/manage/ManagePage.jsx @@ -18,9 +18,11 @@ export default function ManagePage() { const user = useUserStore((store) => store.user); const [dates, setDates] = useState([]); const [values, setValues] = useState([]); + const [rates, setRates] = useState([]); const getData = async () => { const data = await getRates(); + setRates(rates); const newDates = []; const newValues = []; data.response.forEach((item) => { @@ -77,7 +79,7 @@ export default function ManagePage() { /> - ) : ( + ) : rates?.length > 0 ? ( <> + ) : rates?.length === 0 ? ( +
+ 아직 수익률 정보가 없어요! +
+ ) : ( +
+ 포트폴리오가 없어요! +
)}