From 927d945c7705fb2f9e4f306865adeaa45450bb37 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Wed, 25 Mar 2020 09:31:12 +0100 Subject: [PATCH] Fixes monthly contribution in the panel Resolves https://github.com/brave/brave-browser/issues/8841 --- browser/extensions/api/brave_rewards_api.cc | 2 +- common/extensions/api/brave_rewards.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/extensions/api/brave_rewards_api.cc b/browser/extensions/api/brave_rewards_api.cc index 704bf0bd2d9c..a648ef05ae6a 100644 --- a/browser/extensions/api/brave_rewards_api.cc +++ b/browser/extensions/api/brave_rewards_api.cc @@ -449,7 +449,7 @@ void BraveRewardsGetBalanceReportFunction::OnBalanceReport( data->SetDoubleKey("contribute", report.auto_contribute); data->SetDoubleKey("grant", report.grants); data->SetDoubleKey("tips", report.one_time_donation); - data->SetDoubleKey("donation", report.recurring_donation); + data->SetDoubleKey("monthly", report.recurring_donation); Respond(OneArgument(std::move(data))); } diff --git a/common/extensions/api/brave_rewards.json b/common/extensions/api/brave_rewards.json index c937c3705930..e3a9558593aa 100644 --- a/common/extensions/api/brave_rewards.json +++ b/common/extensions/api/brave_rewards.json @@ -544,7 +544,7 @@ "contribute": { "type": "number" }, - "donation": { + "monthly": { "type": "number" }, "grant": {