diff --git a/examples/cms-wordpress/components/avatar.js b/examples/cms-wordpress/components/avatar.js index 4b1616d7ed59f..ce849d82b5178 100644 --- a/examples/cms-wordpress/components/avatar.js +++ b/examples/cms-wordpress/components/avatar.js @@ -2,16 +2,16 @@ import Image from 'next/image' export default function Avatar({ author }) { const name = author - ? author.firstName && author.lastName - ? `${author.firstName} ${author.lastName}` - : author.name + ? author.node.firstName && author.node.lastName + ? `${author.node.firstName} ${author.node.lastName}` + : author.node.name : null return (