ashu-1069 commited on
Commit
f8c8a8b
1 Parent(s): 2bdc87c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -288,14 +288,14 @@ def main():
288
  elif page == "Signup":
289
  signup_page()
290
  elif page == "Journal":
291
- if 'username' not in st.session_state:
292
  st.write('Please login to continue.')
293
  else:
294
  st.write(f"Logged in as {st.session_state.username}")
295
  entry()
296
  elif page == "Advice":
297
- if st.session_state.username == "":
298
- st.write('Please login to continue.')
299
  else:
300
  st.write(f"Logged in as {st.session_state.username}")
301
  journal()
 
288
  elif page == "Signup":
289
  signup_page()
290
  elif page == "Journal":
291
+ if 'username' not in st.session_state:
292
  st.write('Please login to continue.')
293
  else:
294
  st.write(f"Logged in as {st.session_state.username}")
295
  entry()
296
  elif page == "Advice":
297
+ if "username" not in st.session_state:
298
+ st.write('Please login to continue')
299
  else:
300
  st.write(f"Logged in as {st.session_state.username}")
301
  journal()