emvecchi commited on
Commit
897e283
1 Parent(s): 8d9e573

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 > 0:
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):