Fix no description error

This commit is contained in:
Rogerio Chaves 2020-04-25 09:16:22 +02:00
parent c63823964d
commit b3ea5383bf
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<div style="padding-left: 10px">
<h1><%= profile.name %></h1>
<%= profile.description.substr(0, 70) %>
<%= (profile.description || "").substr(0, 70) %>
<% if (friendshipStatus == "request_received") { %>
<p><%= profile.name %> sent you a friendship request</p>

View File

@ -13,7 +13,7 @@
<div style="margin-left: 14px">✅ Friends</div>
<% } %>
</div>
<div style="margin-bottom: 20px;"><%= profile.description %></div>
<div style="margin-bottom: 20px;"><%= (profile.description || "").substr(0, 70) %></div>
<% if (friendshipStatus == "request_received") { %>
<p><%= profile.name %> sent you a friendship request</p>