diff --git a/exercises/06.rerenders/02.problem.comparator/README.mdx b/exercises/06.rerenders/02.problem.comparator/README.mdx index 0628b28c3..e8686a97b 100644 --- a/exercises/06.rerenders/02.problem.comparator/README.mdx +++ b/exercises/06.rerenders/02.problem.comparator/README.mdx @@ -24,7 +24,7 @@ const Avatar = memo( prevProps.user.avatarUrl === nextProps.user.avatarUrl const nameUnchanged = prevProps.user.name === nextProps.user.name // return true if we don't want to re-render - return avatarUnchanged || nameUnchanged + return avatarUnchanged && nameUnchanged }, ) ```