Skip to content

Commit

Permalink
feat: auto select latest year in stats views
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Apr 25, 2024
2 parents c923a30 + 4ca9983 commit 47a5526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jelu-ui/src/components/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const getYears = () => {
dataService.yearsWithStats()
.then(res => {
years.value = res
currentYear.value = res[res.length - 1]
})
.catch(e => {
console.log(e)
Expand Down
1 change: 1 addition & 0 deletions src/jelu-ui/src/components/UserStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const getYears = () => {
dataService.yearsWithStats()
.then(res => {
years.value = res
currentYear.value = res[res.length - 1]
})
.catch(e => {
console.log(e)
Expand Down

0 comments on commit 47a5526

Please sign in to comment.