karlomikus / vue-salt-rim

Salt Rim is a Vue based web client used for connecting to Bar Assistant server instance.
https://barassistant.app
MIT License
99 stars 17 forks source link

Entering decimal ingredient quantity without leading 0 gives incorrect result #91

Closed augustf closed 1 year ago

augustf commented 1 year ago

Steps to reproduce:

  1. Create or edit a cocktail
  2. Select unit of ingredient (I used oz)
  3. Enter a decimal value (.5) without a leading 0 (as in, 0.5)
  4. Save the cocktail
  5. The quantity of ingredient is 1 (oz)
  6. The quantity should be the decimal value (.5 oz)