Commit a2c85942 authored by Phil Hughes's avatar Phil Hughes

Fixed the show_user_callout method

parent ffe52f01
......@@ -276,7 +276,7 @@ module ApplicationHelper
end
def show_user_callout?
cookies[:user_callout_dismissed] == 'true'
cookies[:user_callout_dismissed].nil?
end
def linkedin_url(user)
......
......@@ -9,7 +9,7 @@
= render "projects/last_push"
%div{ class: container_class }
- unless show_user_callout?
- if show_user_callout?
= render 'shared/user_callout'
- if @projects.any? || params[:name]
......
......@@ -100,7 +100,7 @@
Snippets
%div{ class: container_class }
- if @user == current_user && !show_user_callout?
- if @user == current_user && show_user_callout?
= render 'shared/user_callout'
.tab-content
#activity.tab-pane
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment