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

#1774, #1771 - Bug-fixes in Payment.vue #1777

Merged
merged 4 commits into from
Oct 24, 2023

Conversation

SebinSong
Copy link
Collaborator

closes #1771
closes #1774

@SebinSong SebinSong self-assigned this Oct 20, 2023
@SebinSong SebinSong requested a review from taoeffect October 20, 2023 07:01
@@ -33,11 +33,12 @@ export default ({
},
computed: {
percent () {
return `${100 * this.value / this.max}%`
return !this.max ? '0%' : `${100 * this.value / this.max}%`
Copy link
Collaborator Author

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.

Copy link
Member

@taoeffect taoeffect Oct 20, 2023

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... ( ̄ー ̄;

Copy link
Member

@taoeffect taoeffect left a 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:

  1. See comment about adding a comment inline in the code instead of on Github
  2. I noticed that when the payments are reset because a payment was marked as not complete, the green checkboxes are not cleared:

Screenshot 2023-10-20 at 8 58 24 AM

Vs how they started out:

Screenshot 2023-10-20 at 8 58 55 AM

@SebinSong
Copy link
Collaborator Author

@taoeffect Good catch on that one.
To fix that issue (2.), I had to revert some changes I've done previously and optimise them. Also, while working on it I realised the TODO history tab in the /dashboard page doesn't update accordingly for payment being marked as not-received. So made a fix there too.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful! Works perfectly! 😄 🎉

@taoeffect taoeffect merged commit 3200d25 into master Oct 24, 2023
3 checks passed
@taoeffect taoeffect deleted the sebin/task/1774-payment-status-bug branch October 24, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants