Add accounts: no Plaid setup card when a bank feed is set up
In the Netherlands with Enable Banking keys, "Link a bank or card" sent people to the setup page instead of the working Link your bank. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
33a8a237ea
commit
0a97ddbcae
1 file changed
+2
-1
@@ -39,7 +39,8 @@ export function addChoices(country?: string | null, alsoNz = false) {
|
|||||||
// No Plaid keys at all: a made-up bank instead (api/demo-bank), so broke can be tried with only a database.
|
// No Plaid keys at all: a made-up bank instead (api/demo-bank), so broke can be tried with only a database.
|
||||||
demo: !configured("plaid"),
|
demo: !configured("plaid"),
|
||||||
// The country has Plaid banks but this copy has no Plaid keys yet: offer the bank card anyway, pointing at Setup.
|
// The country has Plaid banks but this copy has no Plaid keys yet: offer the bank card anyway, pointing at Setup.
|
||||||
plaidMissing: countryOf(code).providers.includes("plaid") && !configured("plaid"),
|
// Not when a bank feed is already set up (Enable Banking in Europe): that card would only lead away from it.
|
||||||
|
plaidMissing: countryOf(code).providers.includes("plaid") && !configured("plaid") && !options.some((p) => isFeed(p)),
|
||||||
// NZ without Akahu keys: say where to add them.
|
// NZ without Akahu keys: say where to add them.
|
||||||
akahuMissing: (countryOf(code).providers.includes("akahu") || alsoNz) && !configured("akahu"),
|
akahuMissing: (countryOf(code).providers.includes("akahu") || alsoNz) && !configured("akahu"),
|
||||||
// Lives elsewhere but also banks in NZ (Settings, money profile): the NZ option beside their own.
|
// Lives elsewhere but also banks in NZ (Settings, money profile): the NZ option beside their own.
|
||||||
|
|||||||
Reference in new issue
Block a user