From 8d5d7355e5f124ffae9562ee329082c46cd99512 Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Fri, 18 Oct 2024 13:31:33 +0300 Subject: [PATCH] fixed nil registrar value --- app/views/whois_records/show/_registrar.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/whois_records/show/_registrar.html.erb b/app/views/whois_records/show/_registrar.html.erb index b0f55d4e..da605004 100644 --- a/app/views/whois_records/show/_registrar.html.erb +++ b/app/views/whois_records/show/_registrar.html.erb @@ -2,15 +2,15 @@

<%= t '.header' %>

<%= Registrar.human_attribute_name :name %>
-
<%= registrar.name %>
+
<%= registrar&.name %>
<%= Registrar.human_attribute_name :website %>
-
<%= registrar.website %>
+
<%= registrar&.website %>
<%= Registrar.human_attribute_name :phone %>
-
<%= registrar.phone %>
+
<%= registrar&.phone %>
<%= Registrar.human_attribute_name :last_update %>
-
<%= l registrar.last_update.to_datetime, default: nil %>
+
<%= l registrar&.last_update&.to_datetime, default: nil %>