Skip to content

fix(bank-accounts): show the server's reason for BANK_ACCOUNT_INVALID - #730

Merged
islandbitcoin merged 2 commits into
mainfrom
fix/bank-account-invalid-message
Sep 23, 2026
Merged

islandbitcoin merged 2 commits into
mainfrom
fix/bank-account-invalid-message

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Found during device testing on TEST. Adding an account whose number already exists elsewhere returned BANK_ACCOUNT_INVALID with the server's reason ("This account number cannot be used. Please contact support if it is yours."), and the app showed only "Some of these details aren't valid. Check them and try again." so the customer could not tell what to fix.

The mapper now prefers the server message for BANK_ACCOUNT_INVALID / INVALID_INPUT (these are allowlisted, customer-safe strings on the backend as of lnflash/flash#514) and keeps the generic line only when the message is empty. New spec covers the four branches of the mapper.

🤖 Generated with Claude Code

Dread and others added 2 commits September 23, 2026 13:45
The backend sends an allowlisted, customer-safe reason with this code
("Bank is not supported.", "This account number cannot be used...").
The app replaced it with the generic "Some of these details aren't
valid" line, so a customer could not tell which detail to fix. Seen on
the Max during TEST device testing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
On an iPhone 13 Pro Max the number-pad covered the last field and the
button. Use KeyboardAwareScrollView (already in the tree) with extra
scroll height and bottom padding. The screen spec overrides the repo-wide
null mock so the form still renders, and its BANK_ACCOUNT_INVALID /
INVALID_INPUT rows now expect the server's message per the mapper change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@islandbitcoin
islandbitcoin merged commit f929468 into main Sep 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant