Skip to content

Commit

Permalink
Merge pull request #25110 from nextcloud/fix/24970/dashboard-greetings
Browse files Browse the repository at this point in the history
Fix night condition in dashboard greeting
  • Loading branch information
rullzer authored Jan 14, 2021
2 parents 957d49b + 27f7b9f commit 121e2d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dashboard/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
// Determine part of the day
let partOfDay
if (time >= 22 && time < 5) {
if (time >= 22 || time < 5) {
partOfDay = 'night'
} else if (time >= 18) {
partOfDay = 'evening'
Expand Down

0 comments on commit 121e2d8

Please sign in to comment.