Skip to content

Commit 5089257

Browse files
committed
Update tutorials_controller.rb
1 parent 0c2d9a6 commit 5089257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/tutorials_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def update
4949
elsif @tutorial.next_step(params.require(:tutorial), current_user)
5050
redirect_to(@tutorial.next_action, notice: @tutorial.notice)
5151
else
52-
flash.now[:alert] = @tutorial.alert
52+
flash.now[:alert] = @tutorial.alert if @tutorial.alert.present?
5353
render(:show)
5454
end
5555

0 commit comments

Comments
 (0)