chore: cleanup isHydrated (#2614)

Co-authored-by: patak <583075+patak-dev@users.noreply.github.com>
This commit is contained in:
Joaquín Sánchez 2024-02-24 19:24:19 +01:00 committed by GitHub
parent 6b40319723
commit eddbb1eee9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 14 deletions

View file

@ -88,23 +88,23 @@ function deletePollOption(index: number) {
const expiresInOptions = computed(() => [
{
seconds: 1 * 60 * 60,
label: isHydrated.value ? t('time_ago_options.hour_future', 1) : '',
label: t('time_ago_options.hour_future', 1),
},
{
seconds: 2 * 60 * 60,
label: isHydrated.value ? t('time_ago_options.hour_future', 2) : '',
label: t('time_ago_options.hour_future', 2),
},
{
seconds: 1 * 24 * 60 * 60,
label: isHydrated.value ? t('time_ago_options.day_future', 1) : '',
label: t('time_ago_options.day_future', 1),
},
{
seconds: 2 * 24 * 60 * 60,
label: isHydrated.value ? t('time_ago_options.day_future', 2) : '',
label: t('time_ago_options.day_future', 2),
},
{
seconds: 7 * 24 * 60 * 60,
label: isHydrated.value ? t('time_ago_options.day_future', 7) : '',
label: t('time_ago_options.day_future', 7),
},
])