Skip to content

Commit

Permalink
Resolve double/std::string conversion problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Jan 29, 2020
1 parent 28d731e commit 9f46417
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,13 @@ void Contribution::ContributionCompleted(
const double amount,
const ledger::Result result) {
if (result == ledger::Result::LEDGER_OK) {
const std::string probi =
braveledger_bat_util::ConvertToProbi(std::to_string(amount));
ledger_->SetBalanceReportItem(
braveledger_time_util::GetCurrentMonth(),
braveledger_time_util::GetCurrentYear(),
GetReportTypeFromRewardsType(type),
amount);
probi);
}

ledger_->UpdateContributionInfoStepAndCount(
Expand Down

0 comments on commit 9f46417

Please sign in to comment.