Skip to content

Commit

Permalink
Only check for existing customer if we have an ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 18, 2011
1 parent e055191 commit 3d758a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fake_braintree/customer.rb
Expand Up @@ -58,7 +58,7 @@ def split_expiration_date_into_month_and_year!(hash)
end

def existing_customer_hash
FakeBraintree.customers[customer_hash["id"]]
@customer_hash['id'] && FakeBraintree.customers[@customer_hash["id"]]
end

def update_existing_customer!
Expand Down

0 comments on commit 3d758a1

Please sign in to comment.