summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/src
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2021-01-13 18:41:53 +0100
committerJulien Veyssier <eneiluj@posteo.net>2021-01-13 18:41:53 +0100
commit27f7b9f3ce0335dd52adbd039118cc2bb453646c (patch)
tree0e8e20fe8ffb189224b3a851cf83fc13232a9988 /apps/dashboard/src
parentb0caa55563acc16c02a3bb8463af863d4f83879c (diff)
downloadnextcloud-server-27f7b9f3ce0335dd52adbd039118cc2bb453646c.tar.gz
nextcloud-server-27f7b9f3ce0335dd52adbd039118cc2bb453646c.zip
refs #24970 fix night condition in dashboard greeting
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r--apps/dashboard/src/App.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue
index 30e9a2835ca..86dff02af37 100644
--- a/apps/dashboard/src/App.vue
+++ b/apps/dashboard/src/App.vue
@@ -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'