chinmayc3 commited on
Commit
27d993f
·
1 Parent(s): 6824bf3

fixed bug with submit button

Browse files
Files changed (2) hide show
  1. pages/about.py +2 -1
  2. pages/scoreboard.py +3 -1
pages/about.py CHANGED
@@ -42,8 +42,9 @@ with st.form("login_form"):
42
 
43
  email = st.text_input("Email")
44
 
 
45
 
46
- if st.form_submit_button("Submit",key="submit_btn_about"):
47
  if not email:
48
  st.error("Please fill in all fields")
49
  else:
 
42
 
43
  email = st.text_input("Email")
44
 
45
+ submit_button = st.form_submit_button("Submit Form")
46
 
47
+ if submit_button:
48
  if not email:
49
  st.error("Please fill in all fields")
50
  else:
pages/scoreboard.py CHANGED
@@ -295,7 +295,9 @@ if __name__ == "__main__":
295
 
296
  email = st.text_input("Email")
297
 
298
- if st.form_submit_button("Submit",key="submit_btn_scoreboard"):
 
 
299
  if not email:
300
  st.error("Please fill in all fields")
301
  else:
 
295
 
296
  email = st.text_input("Email")
297
 
298
+ submit_button = st.form_submit_button("Submit")
299
+
300
+ if submit_button:
301
  if not email:
302
  st.error("Please fill in all fields")
303
  else: