Skip to content
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

BUG FIX: percentage and remaining are being overloaded #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alex-dyla
Copy link

@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.

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.

1 participant