diff --git a/package.json b/package.json index 3f942b5..8d6a9c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "FinanceList-Desktop", - "version": "2.0.1", + "version": "2.0.2", "description": "A cross-platform finance manager", "main": "./src/app/main.js", "scripts": { diff --git a/src/app/scripts/view/indexView.js b/src/app/scripts/view/indexView.js index 88018c2..b820268 100644 --- a/src/app/scripts/view/indexView.js +++ b/src/app/scripts/view/indexView.js @@ -82,7 +82,7 @@ class IndexView extends View { this.storage.readMainStorage('recurring').sort((a, b) => a.name < b.name ? -1 : 1).forEach(t => { let allocOn = t.allocationOn; tableRows.push([ - t.name, this.printNum(t.amount), t.type, allocOn ? '\u2013' : t.budget, + t.name, this.printNum(t.amount), this.textData[t.type], allocOn ? '\u2013' : t.budget, t.category, timestampToString(t.nextDate), this.textData['intervalNames'][t.interval], t.endDate > 0 ? timestampToString(t.endDate) : '\u2013', this.elt('button', { diff --git a/src/test/updates/recurrTransTest.js b/src/test/updates/recurrTransTest.js index cb4a3ac..5dee4f6 100644 --- a/src/test/updates/recurrTransTest.js +++ b/src/test/updates/recurrTransTest.js @@ -188,7 +188,7 @@ describe('RecurrTrans', function() { assert.strictEqual(jsonStorage.readMainStorage('budgets')[0][1], -100); assert.strictEqual(jsonStorage.readMainStorage('allTimeEarnings')[0][1], 0); assert.strictEqual(jsonStorage.readMainStorage('allTimeSpendings')[0][1], 100); - assert.strictEqual((new Date(recurring[0].nextDate * 1000)).getMonth(), new Date(startDate * 1000).getMonth() + 1); + assert.strictEqual((new Date(recurring[0].nextDate * 1000)).getMonth(), (new Date(startDate * 1000).getMonth() + 1) % 12); }); });