diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 62d83e3..7785aec 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -184,8 +184,8 @@ def trading_journal_page(): entry_time = st.time_input("Entry Time") followed_rules = st.checkbox("Followed Trading Rules") - entry_reason = st.text_area("Entry Reason") - notes = st.text_area("Notes") + entry_reason = st.text_area("Entry Reason", key="add_trade_reason") + notes = st.text_area("Notes", key="add_trade_notes") if st.button("Add Trade"): try: @@ -252,7 +252,9 @@ def trading_journal_page(): key="update_entry_time" ) - new_notes = st.text_area("Notes", value=trade['notes'] if trade['notes'] else "") + new_notes = st.text_area("Notes", + value=trade['notes'] if trade['notes'] else "", + key="update_trade_notes") if st.button("Update Trade"): try: