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 report]: Total value shows NaN when an expense with 0 amount is added #1573

Closed
4 of 5 tasks
anuj-kumary opened this issue Nov 23, 2024 · 1 comment · Fixed by #1574
Closed
4 of 5 tasks
Assignees
Labels
💻 aspect: code Concerns the software code in the repository bug Something isn't working 🛠 goal: fix Bug fix 🏁 status: ready for dev Ready for work

Comments

@anuj-kumary
Copy link
Contributor

Descrcibe the bug?

When adding an expense with the Amount field set to 0 or don't add the amount, the total value displayed is NaN instead of the expected numeric total. This issue disrupts the calculation of expenses and affects the accuracy of the tracker.

Steps to reproduce the bug?

  1. Click the Add expense button
  2. Enter valid inputs in all fields, but set the Amount field to 0
  3. Now click the save button
  4. Observe the total value displayed for all expenses.

Expected behavior

The total value should include the 0 amount of expense and be calculated correctly, showing the appropriate numeric total.

Desktop (Please provide your system information)

OS: macOS
Browser: Chrome

Mobile (Please provide your device information)

No response

Screenshot / Screenshare

Screen.Recording.2024-11-23.at.7.40.14.PM.mov

Relevant log output

No response

Record

Code of Conduct

  • I agree to follow this project's Code of Conduct
@anuj-kumary anuj-kumary added bug Something isn't working 💻 aspect: code Concerns the software code in the repository 🚦status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels Nov 23, 2024
Copy link

Hey! contributor, thank you for opening an Issue 🎉.

@reactplay/maintainers will review your submission soon and give you helpful feedback. If you're interested in continuing your contributions to open source and want to be a part of a welcoming and fantastic community, we invite you to join our ReactPlay Discord Community.
Show your support by starring ⭐ this repository. Thank you and we appreciate your contribution to open source!
Stale Marking : After 30 days of inactivity this issue/PR will be marked as stale issue/PR and it will be closed and locked in 7 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository bug Something isn't working 🛠 goal: fix Bug fix 🏁 status: ready for dev Ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants