Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -577,7 +577,7 @@ else:
|
|
577 |
st.write(f"Thank you for taking part in this study! [Click here]({redirect_url}) to complete the study or copy and paste this code back to finish the study: {study_code}")
|
578 |
|
579 |
# Navigation buttons
|
580 |
-
if st.session_state.current_index
|
581 |
if st.button("Previous"):
|
582 |
navigate(-1)
|
583 |
if 0 <= st.session_state.current_index < len(st.session_state.data):
|
|
|
577 |
st.write(f"Thank you for taking part in this study! [Click here]({redirect_url}) to complete the study or copy and paste this code back to finish the study: {study_code}")
|
578 |
|
579 |
# Navigation buttons
|
580 |
+
if 0 < st.session_state.current_index < len(st.session_state.data):
|
581 |
if st.button("Previous"):
|
582 |
navigate(-1)
|
583 |
if 0 <= st.session_state.current_index < len(st.session_state.data):
|