From cfe17976b253d4ed0872dba50fabed6191689b59 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Mon, 10 Feb 2025 23:15:12 -0800 Subject: [PATCH] fix: Resolve syntax error in portfolio value display condition --- src/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 3d3e867..d7da758 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -644,7 +644,7 @@ def trading_system_page(): # Get latest portfolio value portfolio_data = get_latest_portfolio_value() - if portfolio_ + if portfolio_data: st.metric("Current Portfolio Value", f"${portfolio_data['total_value']:,.2f}") st.metric("Cash Balance", f"${portfolio_data['cash_balance']:,.2f}") st.text(f"Last Updated: {portfolio_data['date']}")