Open kenziebourn opened 6 months ago
Hi @kenziebourn, thanks for the bug report!
Out of curiosity, how did you end up with a date that has empty entries in the database?
I created that test database file manually and made the date have empty entries
Also if possible i'd like to be assigned to this issue
Done
Describe the issue A user can import a database which has an array of empty values, and the overall balance incorrectly updates.
To Reproduce Steps to reproduce the behavior:
testdb.ttldb
file provided or create one with the contents:[ { "type": "flexible", "date": "2023-05-21", "values": [] } ]
testdb.ttldb
fileExpected behavior When importing a database, I expected that the app would check for an array of empty values before validating, and fail if there is no values in the database file. And even if the app should accept empty values, the overall time balance shouldn't be affected since there is no times entered.
Environment testdb.zip