Skip to content

Commit

Permalink
Fix crash bug when day is not defined
Browse files Browse the repository at this point in the history
Related to #108
  • Loading branch information
sebastienbarbier committed Apr 30, 2023
1 parent 7395e35 commit 7978b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ See for sample https://raw.githubusercontent.com/favoloso/conventional-changelog
## [1.2.0] - 2022-MM-DD
### 🛠 Improvements
- Handle uncaught exception with a bug report view (#84)
### 🐛 Bug Fixes
- Dashboard crash (#108)

## [1.1.4] - 2022-02-27
### 🐛 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/dashboard/MonthLineWithControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function generateData(statistics, theme, range='ALL') {
let date = new Date(begin.year(), begin.month());
if (step == 'days') {
date = new Date(begin.year(), begin.month(), begin.date());
stat = statistics.stats.perDates[begin.year()]?.months[begin.month()].days[begin.date()];
stat = statistics.stats.perDates[begin.year()]?.months[begin.month()]?.days[begin.date()];
}
if (stat) {
lineExpenses.values.push({
Expand Down

0 comments on commit 7978b2a

Please sign in to comment.