From 6801ea6c2d1ef5e8f417bbb002507b16c4873041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Wed, 23 Aug 2023 12:33:26 +0200 Subject: [PATCH] fix: compose page error (#2360) --- components/publish/PublishWidget.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 275c03a5..fc99febe 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -84,28 +84,28 @@ function deletePollOption(index: number) { trimPollOptions() } -const expiresInOptions = [ +const expiresInOptions = computed(() => [ { seconds: 1 * 60 * 60, - label: t('time_ago_options.hour_future', 1), + label: isHydrated.value ? t('time_ago_options.hour_future', 1) : '', }, { seconds: 2 * 60 * 60, - label: t('time_ago_options.hour_future', 2), + label: isHydrated.value ? t('time_ago_options.hour_future', 2) : '', }, { seconds: 1 * 24 * 60 * 60, - label: t('time_ago_options.day_future', 1), + label: isHydrated.value ? t('time_ago_options.day_future', 1) : '', }, { seconds: 2 * 24 * 60 * 60, - label: t('time_ago_options.day_future', 2), + label: isHydrated.value ? t('time_ago_options.day_future', 2) : '', }, { seconds: 7 * 24 * 60 * 60, - label: t('time_ago_options.day_future', 7), + label: isHydrated.value ? t('time_ago_options.day_future', 7) : '', }, -] +]) const expiresInDefaultOptionIndex = 2