From 4297fd6989a47f89d52fe803863f1bb7a4e4c1ab Mon Sep 17 00:00:00 2001 From: Junseong Park Date: Sun, 10 Nov 2024 02:43:27 +0900 Subject: [PATCH] fix: typo (#132) --- exercises/06.rerenders/02.problem.comparator/README.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, ) ```