diff --git a/frontend/src/components/PortfolioPanel.tsx b/frontend/src/components/PortfolioPanel.tsx index 6a57474..02bcd32 100644 --- a/frontend/src/components/PortfolioPanel.tsx +++ b/frontend/src/components/PortfolioPanel.tsx @@ -16,7 +16,7 @@ import React, { useMemo } from 'react' import { useQuery } from '@tanstack/react-query' import api from '../lib/api' -import { Activity, TrendingUp, Clock, UserCircle, Globe } from 'lucide-react' +import { Activity, TrendingUp, UserCircle, Globe } from 'lucide-react' import { Position } from '../types/trading' import { isUsStock } from '../utils/stockUtils' import { groupHoldings, GroupedHolding } from '../utils/portfolioGrouping' @@ -253,7 +253,7 @@ const PortfolioPanel = React.memo(({ }, [dtPositions, dtError]) const groups = useMemo(() => groupHoldings(portfolio, dtRows), [portfolio, dtRows]) - const total = groups.daytrading.length + groups.swing.length + groups.manual.length + groups.overseas.length + const total = groups.swing.length + groups.manual.length + groups.overseas.length /** 그룹 소계 (실시간 가격 우선). 통화가 다르므로 그룹 내 같은 통화끼리만 합산 */ const subtotal = (stocks: Position[]) => { @@ -324,9 +324,6 @@ const PortfolioPanel = React.memo(({ 보유 종목