Skip to content

Commit

Permalink
Fix: unable to add accounts without plain set up (#1769)
Browse files Browse the repository at this point in the history
* Update family.rb

Fix for: #1766

Signed-off-by: Jacco Broeren <[email protected]>

* Update family.rb

Add commenting.

Signed-off-by: Jacco Broeren <[email protected]>

---------

Signed-off-by: Jacco Broeren <[email protected]>
  • Loading branch information
F2210 authored Feb 3, 2025
1 parent 550991e commit b02380a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/family.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def get_link_token(webhooks_url:, redirect_url:, accountable_type: nil, region:
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,
Expand Down

0 comments on commit b02380a

Please sign in to comment.