fix: use time constant
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-03-24 20:09:46 +01:00
parent 6ff50fa140
commit b3ed637cec
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -4,9 +4,10 @@ import { useNow } from '@vueuse/core'
import LogoFull from '@/assets/logo-full.svg?component'
import LogoFullPride from '@/assets/logo-full-pride.svg?component'
import {MILLISECONDS_A_DAY} from '@/constants/date'
const now = useNow({
interval: 24 * 60 * 60 * 1000, // Every day
interval: MILLISECONDS_A_DAY,
})
const Logo = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
</script>