From a106bc0357bdf1683cf98157041714ab9e1160aa Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Fri, 17 Mar 2023 16:03:01 +0000 Subject: [PATCH] Support notifications for deleted users --- app/views/notifications/index.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 0497b73..c90600d 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -13,14 +13,14 @@ <%= notification.to_be_sent_on %> <%= notification.template %> - <%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %> - <% if notification.status == 'scheduled' %> - <%= form_with url: deliver_notification_path(notification) do |form| %> - <%= form.submit t('members.show.actions.deliver_notification') %> - <% end %> + <% if notification.member %> + <%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %> + <% else %> + --- <% end %> + <% end %>