diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 291da846..ec9987f6 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -39,11 +39,11 @@ <% when TOPIC_CONNECTED_1 %> <% topic1 = notification.notified_object&.topic1 %> <% topic2 = notification.notified_object&.topic2 %> - connected <%= topic1.name %> to <%= topic2.name %> + connected <%= topic1&.name %> to <%= topic2&.name %> <% when TOPIC_CONNECTED_2 %> <% topic1 = notification.notified_object&.topic1 %> <% topic2 = notification.notified_object&.topic2 %> - connected <%= topic2.name %> to <%= topic1.name %> + connected <%= topic2&.name %> to <%= topic1&.name %> <% when MESSAGE_FROM_DEVS %> <%= notification.subject %> <% end %>