Skip to content

Commit

Permalink
fix: compose page error (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Aug 23, 2023
1 parent 4b37d19 commit 6801ea6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/publish/PublishWidget.vue
Expand Up @@ -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
Expand Down

0 comments on commit 6801ea6

Please sign in to comment.