From 65ad86d9deeda5c06fdde060680180e343dabcb7 Mon Sep 17 00:00:00 2001 From: Aaryan <53212802+Aaryanpal@users.noreply.github.com> Date: Wed, 11 Sep 2024 01:04:35 +0530 Subject: [PATCH] Added condition to handle null state (#965) --- .../adopter_applications/_applications_table.html.erb | 9 +++++++++ .../organizations/adopter_fosterer/likes/index.html.erb | 4 ++++ config/locales/en.yml | 2 ++ 3 files changed, 15 insertions(+) diff --git a/app/views/organizations/adopter_fosterer/adopter_applications/_applications_table.html.erb b/app/views/organizations/adopter_fosterer/adopter_applications/_applications_table.html.erb index 7b1d548ad..ec86d4b90 100644 --- a/app/views/organizations/adopter_fosterer/adopter_applications/_applications_table.html.erb +++ b/app/views/organizations/adopter_fosterer/adopter_applications/_applications_table.html.erb @@ -12,6 +12,8 @@
+ <% if applications.present? %> + <% applications.each do |app| %> <%= turbo_stream_from app %> <% pet = app.pet %> @@ -49,6 +51,13 @@ <% end %> + <% else %> +<%= t('organizations.adopter_fosterer.likes.index.no_pets')%>
+ <%end %>