-
Notifications
You must be signed in to change notification settings - Fork 895
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(wallet): Transaction Details Panel Dismissal #13270
fix(wallet): Transaction Details Panel Dismissal #13270
Conversation
A Storybook has been deployed to preview UI for the latest push |
@@ -291,6 +292,7 @@ handler.on(PanelActions.approveHardwareTransaction.getType(), async (store: Stor | |||
refreshTransactionHistory(txInfo.fromAddress) | |||
await store.dispatch(PanelActions.setSelectedTransaction(txInfo)) | |||
await store.dispatch(PanelActions.navigateTo('transactionDetails')) | |||
apiProxy.panelHandler.setCloseOnDeactivate(true) |
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.
Is this handler defined twice?
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.
const apiProxy = getWalletPanelApiProxy()
is defined once
apiProxy.panelHandler.setCloseOnDeactivate(true)
is called in for 2 separate instances
once for Ledger
success and once for Trezor
success
if (selectedPendingTransaction) { | ||
onConfirmTransaction() | ||
} | ||
const onSelectTransaction = (transaction: BraveWallet.TransactionInfo) => { |
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.
Did anything change in this file other than moving the function declaration order?
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.
Just function declaration order
…smissal fix(wallet): Transaction Details Panel Dismissal
…smissal fix(wallet): Transaction Details Panel Dismissal
Description
Fixes bug where the
Transaction Details
panel was not dismissing on click after completing a Hardware Wallet transaction.Resolves brave/brave-browser#22759
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Before:
Screen.Recording.2022-05-09.at.6.55.00.PM.mov
After:
Screen.Recording.2022-05-09.at.6.51.17.PM.mov