diff --git a/frontend/src/App.js b/frontend/src/App.js
index a819df2..7be4c5a 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -7,10 +7,10 @@ import StockGraph from './StockGraphing';
function App() {
const [activeTab, setActiveTab] = useState('Overall Portfolio'); // default active tab
- const [selectedTicker, setSelectedTicker] = useState(null);
+ const [selectedStock, setSelectedStock] = useState(null);
- const handleStockSelection = (ticker) => {
- setSelectedTicker(ticker); // Update the selected stock ticker
+ const handleStockSelection = (stock) => {
+ setSelectedStock(stock);
};
return (
@@ -36,14 +36,20 @@ function App() {
Current Value: ${selectedStock.value_held.toFixed(2)} {selectedStock.profit_loss_percentage.toFixed(2)}% Shares Held: {selectedStock.shares_held}{selectedTicker ? `${selectedTicker} Holdings` : 'Overall Portfolio'}
+ {selectedStock ? `${selectedStock.name}` : 'Overall Portfolio'}
+ {selectedStock && (
+