Skip to content

Commit ba5578f

Browse files
committed
Don't crash if protips are empty
1 parent 40571db commit ba5578f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/protips/index.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
%a.new-network{href: network_path(id: slug)}
181181
= name
182182

183-
- if @protips.count == 0
183+
- if @protips && @protips.count == 0
184184
.no-tips
185185
%h1 No results
186186
%p You are not following anything yet. Follow people, teams or networks to see protips from them here. boom.

0 commit comments

Comments
 (0)