Skip to content

fix(bitcoin): hide the origin row when there is nothing to display - #359

Merged
mikesposito merged 2 commits into
me/origin/bitcoinfrom
me/origin/bitcoin-hide-origin-row
Sep 24, 2026
Merged

mikesposito merged 2 commits into
me/origin/bitcoinfrom
me/origin/bitcoin-hide-origin-row

Conversation

@mikesposito

Copy link
Copy Markdown
Member

Explanation

The PSBT-signing and send confirmations rendered the 'Request from' row unconditionally, so an origin with nothing meaningful to show (a WalletConnect connection id) produced a row with a blank value. Render the row only when displayOrigin resolves to a hostname or the MetaMask label, as the changelog already claims.

Also stub .svg imports in the bitcoin Jest config (as the other snaps already do) so the JSX views, which transitively import network icons, can be tested directly.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

The PSBT-signing and send confirmations rendered the 'Request from' row
unconditionally, so an origin with nothing meaningful to show (a
WalletConnect connection id) produced a row with a blank value. Render
the row only when displayOrigin resolves to a hostname or the MetaMask
label, as the changelog already claims.

Also stub .svg imports in the bitcoin Jest config (as the other snaps
already do) so the JSX views, which transitively import network icons,
can be tested directly.
@mikesposito
mikesposito marked this pull request as ready for review September 24, 2026 10:50
@mikesposito
mikesposito requested a review from a team as a code owner September 24, 2026 10:50
@mikesposito
mikesposito force-pushed the me/origin/bitcoin-hide-origin-row branch from 69d05a5 to 1b1a689 Compare September 24, 2026 11:53
@mikesposito
mikesposito merged commit 94b048b into me/origin/bitcoin Sep 24, 2026
4 of 5 checks passed
@mikesposito
mikesposito deleted the me/origin/bitcoin-hide-origin-row branch September 24, 2026 11:53
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