Commit 2cd71eb5 authored by Matija Čupić's avatar Matija Čupić

Add safe navigation for users without callout state

parent 977996d2
......@@ -6,6 +6,6 @@ module CalloutsHelper
private
def user_dismissed?(feature_name)
Callout.find_by(user: current_user, feature_name: feature_name).dismissed_state?
Callout.find_by(user: current_user, feature_name: feature_name)&.dismissed_state?
end
end
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