fix(reminders): custom relative highlight now only when a custom relative reminder was actually selected

This commit is contained in:
kolaente 2023-06-10 18:54:10 +02:00
parent 8930f61548
commit 5e4eb4a728
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<SimpleButton
@click="showFormSwitch = 'relative'"
class="option-button"
:class="{'currently-active': modelValue?.relativeTo !== null && presets.find(p => p.relativePeriod === modelValue?.relativePeriod && modelValue?.relativeTo === p.relativeTo) === undefined}"
:class="{'currently-active': typeof modelValue !== 'undefined' && modelValue?.relativeTo !== null && presets.find(p => p.relativePeriod === modelValue?.relativePeriod && modelValue?.relativeTo === p.relativeTo) === undefined}"
>
{{ $t('task.reminder.custom') }}
</SimpleButton>