Skip to content

Commit

Permalink
fix: user without subscription cannot see homescreen
Browse files Browse the repository at this point in the history
  • Loading branch information
castrolem committed Oct 16, 2019
1 parent 3f44ba0 commit baf3951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/static_pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class StaticPagesController < ApplicationController
def home
@current_user = current_user
@current_user_subscription = @current_user.active_subscription
@current_user_subscription = @current_user&.active_subscription
@plans = Plan.all.order('amount asc')
end
end

0 comments on commit baf3951

Please sign in to comment.