fix account sign up

This commit is contained in:
Celina Lopez
2024-10-27 13:36:18 -07:00
parent 745cc8c326
commit 2d7a80efea

View File

@@ -85,7 +85,7 @@ module Users
user.save!
end
if user.owned_accounts.zero?
if user.owned_accounts.size.zero?
account = Account.create!(
owner: user,
name: "#{auth.info.name || auth.info.email.split("@").first}'s Account"