Task 2: Invalid Expenses Can Be Added
Problem
The app currently allows users to add invalid expense entries, such as:
- Empty titles
- Zero amount
- Negative values
This results in inaccurate or corrupted expense data.
Points: 15
Steps to Reproduce
- Open the app
- Go to the Add Expense screen
- Enter an empty title, or
- Enter
0 or a negative number as the amount
- Click Add Expense
- Notice: The app accepts the invalid entry
Expected Behavior
The app should validate inputs and prevent adding expenses with:
- Empty titles
- Zero amounts
- Negative values
A proper error message or UI warning should be shown.
Submission Guidelines
- Comment on this issue with your proposed solution approach
- Wait for issue assignment from reviewers
- Create a PR with clear commit messages
- Reference this issue in your PR description
Task 2: Invalid Expenses Can Be Added
Problem
The app currently allows users to add invalid expense entries, such as:
This results in inaccurate or corrupted expense data.
Points: 15
Steps to Reproduce
0or a negative number as the amountExpected Behavior
The app should validate inputs and prevent adding expenses with:
A proper error message or UI warning should be shown.
Submission Guidelines