From 7e0ad0e459ae7afb9c47c1dad93c55e157af109e Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 13 May 2017 13:49:26 -0400 Subject: [PATCH] Update index.html.erb --- app/views/notifications/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>