From 5de9547a266e46a43d9bac3a1516bfbbac882c6c Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 1 Nov 2016 17:06:04 -0700 Subject: [PATCH] remove 'waiting for deposit' message when deposit confirmed message is shown fix #5300 Auditors: @mrose17 Test plan: 1. enable brave payments, wait up to 15 min for 'waiting for deposit' notification to appear 2. make a deposit and wait for it to be processed. the first notification should disappear when the second appears. --- app/ledger.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/ledger.js b/app/ledger.js index ea39cf0eabc..97def35c81c 100644 --- a/app/ledger.js +++ b/app/ledger.js @@ -1530,6 +1530,8 @@ const showNotificationPaymentDone = (transactionContributionFiat) => { notificationPaymentDoneMessage = locale.translation('notificationPaymentDone') .replace(/{{\s*amount\s*}}/, transactionContributionFiat.amount) .replace(/{{\s*currency\s*}}/, transactionContributionFiat.currency) + // Hide the 'waiting for deposit' message box if it exists + appActions.hideMessageBox(addFundsMessage) appActions.showMessageBox({ greeting: locale.translation('updateHello'), message: notificationPaymentDoneMessage,