Skip to content

Commit 60da95f

Browse files
committedJun 10, 2020
Fixes queue not being deleted for split one time tip
Resolves brave/brave-browser#10176
1 parent 93cf6ec commit 60da95f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎components/brave_rewards/browser/rewards_service_browsertest.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2958,11 +2958,11 @@ IN_PROC_BROWSER_TEST_F(
29582958
contents(),
29592959
"[data-test-id='activity-table-body'] tr:nth-of-type(1) "
29602960
"td:nth-of-type(3)",
2961-
"20.000BAT28.60 USD");
2961+
"20.0BAT28.60 USD");
29622962

29632963
rewards_service_browsertest_utils::WaitForElementToEqual(
29642964
contents(),
29652965
"[data-test-id='activity-table-body'] tr:nth-of-type(2) "
29662966
"td:nth-of-type(3)",
2967-
"30.000BAT42.90 USD");
2967+
"30.0BAT42.90 USD");
29682968
}

‎vendor/bat-native-ledger/src/bat/ledger/internal/contribution/contribution_tip.cc

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <utility>
77

8+
#include "base/guid.h"
89
#include "bat/ledger/internal/contribution/contribution_tip.h"
910
#include "bat/ledger/internal/ledger_impl.h"
1011

@@ -74,6 +75,7 @@ void ContributionTip::ServerPublisher(
7475
queue_list.push_back(std::move(publisher));
7576

7677
auto queue = ledger::ContributionQueue::New();
78+
queue->id = base::GenerateGUID();
7779
queue->type = ledger::RewardsType::ONE_TIME_TIP;
7880
queue->amount = amount;
7981
queue->partial = false;

0 commit comments

Comments
 (0)
Please sign in to comment.