diff --git a/app/controllers/ajax/anonymous_block_controller.rb b/app/controllers/ajax/anonymous_block_controller.rb index ab082751..20503553 100644 --- a/app/controllers/ajax/anonymous_block_controller.rb +++ b/app/controllers/ajax/anonymous_block_controller.rb @@ -14,7 +14,7 @@ class Ajax::AnonymousBlockController < AjaxController question: ) - question.inboxes.first.destroy + question.inboxes.first&.destroy @response[:status] = :okay @response[:message] = t(".success")