Skip to content

BUG FIX: percentage and remaining are being overloaded #14

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

Merged
merged 3 commits into from
Mar 12, 2025

Conversation

alex-dyla
Copy link
Contributor

@alex-dyla alex-dyla commented Dec 7, 2023

Setting remaining and percentage as const is overloading them and scopes these vars only to the else block. If the intention is to set them to zero for other types of accounts and otherwise set them to found values you should not use const on lines 52 and 54 @austenstone for review

Current code ensures remaining and percentage will always output as 0.

@austenstone austenstone enabled auto-merge (squash) March 12, 2025 13:52
auto-merge was automatically disabled March 12, 2025 13:55

Pull request was closed

@austenstone austenstone reopened this Mar 12, 2025
@austenstone austenstone enabled auto-merge (squash) March 12, 2025 13:57
@austenstone austenstone disabled auto-merge March 12, 2025 14:03
@austenstone austenstone merged commit c775963 into austenstone:main Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants