-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
#1774, #1771 - Bug-fixes in Payment.vue #1777
Conversation
@@ -33,11 +33,12 @@ export default ({ | |||
}, | |||
computed: { | |||
percent () { | |||
return `${100 * this.value / this.max}%` | |||
return !this.max ? '0%' : `${100 * this.value / this.max}%` |
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.
When max
here is passed as 0
, the percent value here becomes NaN%
and leads to a UI bug. This is a fix for that issue.
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.
@SebinSong this would've been a great comment to add to the code... ( ̄ー ̄;
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.
Looking really good @SebinSong!
Two requests:
- See comment about adding a comment inline in the code instead of on Github
- I noticed that when the payments are reset because a payment was marked as not complete, the green checkboxes are not cleared:
Vs how they started out:
@taoeffect Good catch on that one. |
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.
Beautiful! Works perfectly! 😄 🎉
closes #1771
closes #1774