feat: Add unique keys to text_area elements in trading journal page

This commit is contained in:
Bobby (aider) 2025-02-10 23:01:48 -08:00
parent b71a3eef38
commit 91e6b7f2b6

View File

@ -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: