Skip to content

Invalid Expenses Can Be Added #2

Description

@coder-writes

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

  1. Open the app
  2. Go to the Add Expense screen
  3. Enter an empty title, or
  4. Enter 0 or a negative number as the amount
  5. Click Add Expense
  6. 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

  1. Comment on this issue with your proposed solution approach
  2. Wait for issue assignment from reviewers
  3. Create a PR with clear commit messages
  4. Reference this issue in your PR description

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions