JoeJorgensen / WeCare

3 stars 0 forks source link

Current Balance For Campaign Not Correct #21

Closed jessicasnguyen closed 2 years ago

jessicasnguyen commented 2 years ago

Issue

The current balance of the campaign doesn't show the correct amount

Steps to recreate

  1. Navigate to the Campaign page ( This was done on the barn fire page)
  2. Donations are being excluded
  3. If I refresh the page, only the current donations I've added show up
  4. If I navigate away from the page and back it seems to "reset" the count
  5. In the screenshot only the last two donations are showing

Screenshots

Screen Shot 2022-04-22 at 3 16 14 PM Screen Shot 2022-04-22 at 3 16 26 PM
JoeJorgensen commented 2 years ago

That's weird I haven't come across that one yet but that's definitely an issue and our payment system is pretty new so we have a lot to adjust, this was super helpful though thank you! I'm having trouble trying to replicate this would you mind being a little more specific on how you got it to do this.

jessicasnguyen commented 2 years ago

Sure! I did some more testing and it seems to be tied to the other bug I submitted where someone could go through the donation without adding anything.

Steps to Replicate

  1. Logged in
  2. Navigated to Campaign (in this case the barn)
  3. Click the donate button
  4. If I put in an amount and submitted it populated as expected
  5. If I didn't include and amount and instead just hit submit, it zeroed the total out

Screenshots

Before adding a new donation

Screen Shot 2022-04-22 at 6 38 21 PM

After adding $50 into the donation amount field

Screen Shot 2022-04-22 at 6 39 28 PM

After submitting without putting an amount in the donation field

Screen Shot 2022-04-22 at 6 39 56 PM
jessicasnguyen commented 2 years ago

Forgot screenshot to show all donations

Screen Shot 2022-04-22 at 6 40 12 PM
JoeJorgensen commented 2 years ago

Okay sweet I thought so, I fixed that bug it’s tied to and the whole campaign page in general, so it should be all good to go I’m glad you spotted this, thanks!