From 906e4058696f5683641b2f914c8d610c229e7df6 Mon Sep 17 00:00:00 2001 From: abcxj123 Date: Tue, 11 Jun 2024 14:47:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=954?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/molecules/AccountSummaryItem.tsx | 7 +++++-- src/pages/main/Home.tsx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/molecules/AccountSummaryItem.tsx b/src/components/molecules/AccountSummaryItem.tsx index 4e1e9c4..81bf7a4 100644 --- a/src/components/molecules/AccountSummaryItem.tsx +++ b/src/components/molecules/AccountSummaryItem.tsx @@ -25,9 +25,12 @@ export const AccountSummaryItem: FC = ({ accountId: accountId, }, }); + return; } - if (title === '머니박스 통장') navigate('/moneyBox'); - else if (title === '하나머니') return; + if (title === '머니박스 통장') { + navigate('/moneyBox'); + return; + } else if (title === '하나머니') return; else navigate(link); }; diff --git a/src/pages/main/Home.tsx b/src/pages/main/Home.tsx index 075c4ae..5d6c524 100644 --- a/src/pages/main/Home.tsx +++ b/src/pages/main/Home.tsx @@ -68,7 +68,7 @@ export const Home = () => { )} -
+