Skip to content

[Add Shortcut] Decimal quantity displayed can be confusing #5

Description

@imaginarys96

Description
After successfully adding a shortcut, the app will let the user know that it was successfully added and its quantity. The quantity will always be displayed in decimal format, which can be confuse the user depending on the item added.

Steps to Reproduce

  1. Run the app
  2. Run the command add sc/bread,1

Actual Output
The output is as shown below. The quantity is stated as 1.0pc
image.png

Expected Output
If the quantity is a whole number, the decimal point should be removed. In this case, the quantity should appear as 1pc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions