niamurrell / value-app

Calculate the per-use value of purchases over time.
https://valuemax.herokuapp.com/
MIT License
12 stars 18 forks source link

Deleting a usage date deletes the wrong date #37

Open niamurrell opened 4 years ago

niamurrell commented 4 years ago

Expected Behavior

When you delete a date from the list of dates the item was used, it doesn't consistently delete the correct date.

Actual Behavior

It sometimes deletes a different usage date from the one you clicked on. Likely to be due to the order of the array: possibly the delete method deletes based on an index in the array of dates instead of the clicked value.

Steps to Reproduce (including precondition)

To reproduce, add several usage dates to a thing and then try to delete dates in a different order.