-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: present hw pairing sheet during swap #6275
Conversation
4239d6d
to
71db231
Compare
if ( | ||
index === 0 || | ||
routes[index - 1] === Routes.EXPANDED_ASSET_SHEET || | ||
activeRoute.name === Routes.PAIR_HARDWARE_WALLET_AGAIN_SHEET | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this wasn't introduced in your PR, but can we specify what these checks are? I'm a little confused what index === 0
implies. Something like:
const isOnlyRoute = index === 0; // not sure if this is actually what this means?
const isFromExpandedSheet = ...
const isFromHardwareWalletSheet = ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling that both of those cases do not fit the typical shape of routes
. I hadn't yet had time to check out that expanded sheet flow yet.
I'll try to verify that either of these are necessary. Then make them more legible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit but lgtm
Co-authored-by: gregs <[email protected]>
Fixes APP-1928
What changed (plus any additional context for devs)
We have added the ledger bluetooth sheet back to the swap flow. Ledger transactions were working, however we were not displaying the various bluetooth connection states.
Screen recordings / screenshots
RPReplay_Final1732665403.MP4
What to test
Attempt a swap with a ledger device. Make sure you see the bluetooth connection sheet.