From 43b339940b1e06c8a5d7a0cffdad273d074e7fc4 Mon Sep 17 00:00:00 2001
From: Sholom Ber <46351743+Himmelschmidt@users.noreply.github.com>
Date: Thu, 7 Aug 2025 15:48:33 -0400
Subject: [PATCH] Gate SimpleFin option behind US region check
SimpleFin is primarily for North American financial institutions,
so only show the option when US banking connections are available.
---
.../accounts/new/_method_selector.html.erb | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/app/views/accounts/new/_method_selector.html.erb b/app/views/accounts/new/_method_selector.html.erb
index 755d714f9..751fdd316 100644
--- a/app/views/accounts/new/_method_selector.html.erb
+++ b/app/views/accounts/new/_method_selector.html.erb
@@ -33,14 +33,16 @@
<% end %>
<% end %>
- <%# SimpleFin Link %>
- <%= link_to new_simplefin_item_path,
- class: "text-primary flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-surface border border-transparent focus:border focus:border-primary px-2 hover:bg-surface rounded-lg p-2",
- data: { turbo_frame: "modal" } do %>
-
- <%= icon("building-2") %>
-
- Connect with SimpleFin
+ <% if show_us_link %>
+ <%# SimpleFin Link - North America only %>
+ <%= link_to new_simplefin_item_path,
+ class: "text-primary flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-surface border border-transparent focus:border focus:border-primary px-2 hover:bg-surface rounded-lg p-2",
+ data: { turbo_frame: "modal" } do %>
+
+ <%= icon("building-2") %>
+
+ Connect with SimpleFin
+ <% end %>
<% end %>
<% end %>