Skip to content

Commit fa8111c

Browse files
committed
fix(startup): Button for startups url
- fix incorrect check for nil instead of empty
1 parent 154b724 commit fa8111c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/startups/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<% end %>
1111
</div>
1212
</div>
13-
<% unless @startup.url.nil? %>
13+
<% unless (@startup.url.nil? || @startup.url.empty?) %>
1414
<%= link_to 'Visit Website', @startup.url, class: button_classes.render %>
1515
<% end %>
1616
</div>

0 commit comments

Comments
 (0)