cr
This commit is contained in:
@@ -146,7 +146,6 @@ export default function PortfolioView() {
|
||||
};
|
||||
|
||||
// Calculate total value and percent change for display
|
||||
const totalValue = portfolio.totalValue;
|
||||
const totalChange = portfolio.holdings.reduce(
|
||||
(acc, curr) => acc + (curr.price - curr.avgCost) * curr.shares,
|
||||
0,
|
||||
|
||||
@@ -161,10 +161,6 @@ export default function StockPrice(props: {
|
||||
}
|
||||
};
|
||||
|
||||
const handleOrderTypeChange = (type: "buy" | "sell") => {
|
||||
setOrderType(type);
|
||||
};
|
||||
|
||||
const toggleLiveUpdates = () => {
|
||||
setIsLiveUpdating((prev) => !prev);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user