Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Bugfix and Version 2.0.7
Browse files Browse the repository at this point in the history
Fixed a bug where removing a recurring transaction did not work correctly due to wrong types (fixes #108).
  • Loading branch information
Malte311 committed Jan 9, 2022
1 parent 6b7475a commit 3fc27f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FinanceList-Desktop",
"version": "2.0.6",
"version": "2.0.7",
"description": "A cross-platform finance manager",
"main": "./src/app/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/scripts/updates/recurrTrans.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class RecurrTrans {
deleteRecurringTransaction(startDate) {
let recurrTrans = this.storage.readMainStorage('recurring');

let index = recurrTrans.findIndex(trans => trans.startDate === startDate);
let index = recurrTrans.findIndex(trans => parseInt(trans.startDate) === parseInt(startDate));
recurrTrans.splice(index, 1);

this.storage.writeMainStorage('recurring', recurrTrans);
Expand Down

0 comments on commit 3fc27f7

Please sign in to comment.