Skip to content

Commit

Permalink
fixed nil registrar value
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Oct 18, 2024
1 parent f516ada commit 8d5d735
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/whois_records/show/_registrar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<h2><%= t '.header' %></h2>
<dl>
<dt><%= Registrar.human_attribute_name :name %></dt>
<dd><%= registrar.name %></dd>
<dd><%= registrar&.name %></dd>

<dt><%= Registrar.human_attribute_name :website %></dt>
<dd><%= registrar.website %></dd>
<dd><%= registrar&.website %></dd>

<dt><%= Registrar.human_attribute_name :phone %></dt>
<dd><%= registrar.phone %></dd>
<dd><%= registrar&.phone %></dd>

<dt><%= Registrar.human_attribute_name :last_update %></dt>
<dd><%= l registrar.last_update.to_datetime, default: nil %></dd>
<dd><%= l registrar&.last_update&.to_datetime, default: nil %></dd>
</dl>
</section>

0 comments on commit 8d5d735

Please sign in to comment.