diff --git a/src/components/PrismicLink.ts b/src/components/PrismicLink.ts index 4d43215..306294d 100644 --- a/src/components/PrismicLink.ts +++ b/src/components/PrismicLink.ts @@ -212,7 +212,7 @@ export const usePrismicLink = ( const text = computed(() => { const field = unref(props.field); - return field && "text" in field ? field.text : undefined; + return isFilled.link(field) ? field.text : undefined; }); return {