Skip to content

Commit f56d89d

Browse files
author
Pavneet Singh
authored
Fix pending transaction (#19733)
1 parent 463bc84 commit f56d89d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/java/org/chromium/chrome/browser/crypto_wallet/fragments/PortfolioFragment.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ private void setUpObservers() {
195195
mPendingTxs = transactionInfos;
196196
if (mCurrentPendingTx == null && mPendingTxs.size() > 0) {
197197
mCurrentPendingTx = mPendingTxs.get(0);
198+
} else if (mPendingTxs.size() == 0) {
199+
mCurrentPendingTx = null;
198200
}
199201
updatePendingTxNotification();
200202
});
@@ -397,7 +399,7 @@ public void callAnotherApproveDialog() {
397399
.getAccountNameForTransaction(mCurrentPendingTx));
398400
approveTxBottomSheetDialogFragment.setApprovedTxObserver(this);
399401
approveTxBottomSheetDialogFragment.show(
400-
getFragmentManager(), ApproveTxBottomSheetDialogFragment.TAG_FRAGMENT);
402+
getParentFragmentManager(), ApproveTxBottomSheetDialogFragment.TAG_FRAGMENT);
401403
}
402404

403405
private void showEditVisibleDialog() {

0 commit comments

Comments
 (0)