Fixed age calculator visibility

This commit is contained in:
2026-02-06 23:57:20 -05:00
parent bb01d08622
commit 59783ee93a

View File

@@ -135,7 +135,7 @@ function convertToAge(dob: string) {
<FormControl> <FormControl>
<template class="flex items-center gap-10"> <template class="flex items-center gap-10">
<DateInput :model-value="(value as string) ?? ''" :disabled="readOnly" @update:model-value="handleChange" /> <DateInput :model-value="(value as string) ?? ''" :disabled="readOnly" @update:model-value="handleChange" />
<p v-if="value != undefined" class="text-muted-foreground">Age: {{ convertToAge(value) }}</p> <p v-if="props.readOnly" class="text-muted-foreground">Age: {{ convertToAge(value) }}</p>
</template> </template>
</FormControl> </FormControl>
<div class="h-4"> <div class="h-4">