-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor balance report #4237
Refactor balance report #4237
Conversation
cedc1c0
to
9c531a3
Compare
5794012
to
a9c856f
Compare
a9c856f
to
08cabcc
Compare
08cabcc
to
ba8f3d6
Compare
40f4396
to
a7a1aee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
newReports[report.first] = newReport; | ||
void LedgerToServiceBalanceReport( | ||
ledger::BalanceReportInfoPtr report, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps Obtain/Get/BalanceReportFromLedger
or similar...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is conversion from one type to another
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConvertLedgerReportToBalancereport
then?
vendor/bat-native-ledger/src/bat/ledger/internal/state/report_balance_state.cc
Outdated
Show resolved
Hide resolved
@@ -1261,7 +1261,7 @@ public void OnGetCurrentBalanceReport(String[] report) { | |||
tv.setText(toInsert); | |||
tvUSD.setText(textUSD); | |||
} | |||
if (!report[i].equals("0")) { | |||
if (report[i] != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: != 0.0
e4ee1b5
to
ff44fa8
Compare
@Brandon-T checked iOS code as @kylehickinson is on PTO |
Resolves brave/brave-browser#7329
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
plan 1:
plan 2:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.