fixed bug with submit button
Browse files- pages/about.py +2 -1
- 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
|
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 |
-
|
|
|
|
|
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:
|