We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f78d31 commit 883f597Copy full SHA for 883f597
app/controllers/teams_controller.rb
@@ -151,7 +151,7 @@ def upgrade
151
upgrade_params = params.permit(:discount)
152
153
current_user.seen(:product_description) if signed_in?
154
- @team = (current_user && current_user.team) || Team.new
+ @team = (current_user && current_user.membership.team) || Team.new
155
store_location! unless signed_in?
156
157
if upgrade_params[:discount] == ENV['DISCOUNT_TOKEN']
0 commit comments