Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|