CCockrum commited on
Commit
a9aae5a
·
verified ·
1 Parent(s): 226f678

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -500,7 +500,11 @@ def main():
500
  if not st.session_state.favorites:
501
  st.info("You haven't added any pets to your favorites yet. Start searching to find your perfect match!")
502
  else:
503
- for pet in st.session_state.favorites:
 
 
 
 
504
  st.markdown("---")
505
  display_pet_card(pet, is_favorite=True, context="favorites")
506
 
 
500
  if not st.session_state.favorites:
501
  st.info("You haven't added any pets to your favorites yet. Start searching to find your perfect match!")
502
  else:
503
+ # Check if a pet is selected from favorites
504
+ if st.session_state.selected_pet:
505
+ display_pet_details(st.session_state.selected_pet)
506
+ else:
507
+ for pet in st.session_state.favorites:
508
  st.markdown("---")
509
  display_pet_card(pet, is_favorite=True, context="favorites")
510