handle nil notification user

This commit is contained in:
byte[] 2019-12-06 19:16:35 -05:00
parent 0d3555c3da
commit b81eb43038

View file

@ -1,6 +1,9 @@
.flex.flex--centered.flex__grow
div
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @notification.actor_child, conn: @conn
= if @notification.actor_child do
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @notification.actor_child, conn: @conn
- else
' Someone
=> @notification.action
strong>