Skip to content

Commit

Permalink
Update src/components/PrismicLink.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Xavier Rutayisire <[email protected]>
  • Loading branch information
lihbr and xrutayisire authored Aug 30, 2024
1 parent 0fbd7b4 commit a606ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PrismicLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a606ff7

Please sign in to comment.