diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5dfb3a144..1d40e3a52 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -109,7 +109,9 @@ class UsersController < ApplicationController new(access_token: current_user.identities.where(provider: "github").last.token) end when "billing" - @customer = Stripe::Customer.retrieve(current_user.stripe_id_code) if current_user.stripe_id_code + stripe_code = current_user.stripe_id_code + return if stripe_code == "special" + @customer = Stripe::Customer.retrieve(stripe_code) if !stripe_code.blank? when "membership" if current_user.monthly_dues.zero? redirect_to "/membership" diff --git a/app/views/users/_billing.html.erb b/app/views/users/_billing.html.erb index d7edc63d6..8a9ffb6aa 100644 --- a/app/views/users/_billing.html.erb +++ b/app/views/users/_billing.html.erb @@ -1,9 +1,16 @@