emvecchi commited on
Commit
d288dbf
·
verified ·
1 Parent(s): ae55a56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -629,10 +629,10 @@ elif st.session_state.current_index < len(st.session_state.data):
629
  elif st.session_state.current_index == len(st.session_state.data):
630
  st.write(f"**Thank you for taking part in this study!** \n ")
631
  if st.button("Previous"):
632
- navigate(-2)
633
 
634
  # Navigation buttons
635
- if -2 < st.session_state.current_index < len(st.session_state.data):
636
  if st.button("Previous"):
637
  navigate(-1)
638
 
 
629
  elif st.session_state.current_index == len(st.session_state.data):
630
  st.write(f"**Thank you for taking part in this study!** \n ")
631
  if st.button("Previous"):
632
+ navigate(-1)
633
 
634
  # Navigation buttons
635
+ if 0 < st.session_state.current_index < len(st.session_state.data):
636
  if st.button("Previous"):
637
  navigate(-1)
638