diff --git a/app/helpers/callouts_helper.rb b/app/helpers/callouts_helper.rb index a27533f30c6..199652b1175 100644 --- a/app/helpers/callouts_helper.rb +++ b/app/helpers/callouts_helper.rb @@ -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