This commit is contained in:
bracesproul
2025-03-03 17:56:53 -08:00
parent 6b382879c5
commit d474af52f8
2 changed files with 0 additions and 5 deletions

View File

@@ -146,7 +146,6 @@ export default function PortfolioView() {
}; };
// Calculate total value and percent change for display // Calculate total value and percent change for display
const totalValue = portfolio.totalValue;
const totalChange = portfolio.holdings.reduce( const totalChange = portfolio.holdings.reduce(
(acc, curr) => acc + (curr.price - curr.avgCost) * curr.shares, (acc, curr) => acc + (curr.price - curr.avgCost) * curr.shares,
0, 0,

View File

@@ -161,10 +161,6 @@ export default function StockPrice(props: {
} }
}; };
const handleOrderTypeChange = (type: "buy" | "sell") => {
setOrderType(type);
};
const toggleLiveUpdates = () => { const toggleLiveUpdates = () => {
setIsLiveUpdating((prev) => !prev); setIsLiveUpdating((prev) => !prev);
}; };