Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -226,6 +226,7 @@ def display_pet_card(pet, is_favorite=False):
|
|
226 |
with col1:
|
227 |
if st.button("View Details", key=f"details_{pet['id']}"):
|
228 |
st.session_state.selected_pet = pet['id']
|
|
|
229 |
with col2:
|
230 |
if not is_favorite:
|
231 |
if st.button("Add to Favorites", key=f"fav_{pet['id']}"):
|
|
|
226 |
with col1:
|
227 |
if st.button("View Details", key=f"details_{pet['id']}"):
|
228 |
st.session_state.selected_pet = pet['id']
|
229 |
+
st.stop()
|
230 |
with col2:
|
231 |
if not is_favorite:
|
232 |
if st.button("Add to Favorites", key=f"fav_{pet['id']}"):
|