Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Fix: unable to add accounts without plain set up (#1769)

Jacco Broerenb02380ac97b4
diff --git a/app/models/family.rb b/app/models/family.rb
index 9a277f43..71926dbd 100644
--- a/app/models/family.rb
+++ b/app/models/family.rb
@@ -63,6 +63,9 @@ class Family < ApplicationRecord
self.class.plaid_us_provider
end
+ # early return when no provider
+ return nil unless provider
+
provider.get_link_token(
user_id: id,
webhooks_url: webhooks_url,