diff --git a/src/components/quiz-option.tsx b/src/components/quiz-option.tsx
index ced25cc..c626cd1 100644
--- a/src/components/quiz-option.tsx
+++ b/src/components/quiz-option.tsx
@@ -10,46 +10,55 @@ export type QuizOptionProps = {
value: string | boolean;
};
-export const QuizOption = React.memo(function QuizOption({
- onClick,
- isSelected,
- display,
- value,
-}: QuizOptionProps) {
- const type = display === "Yes" || display === "No" ? "boolean" : "image";
+export const QuizOption = React.memo(
+ function QuizOption({
+ onClick,
+ isSelected,
+ display,
+ value,
+ }: QuizOptionProps) {
+ const type = display === "Yes" || display === "No" ? "boolean" : "image";
- return (
-
- );
-});
+ return (
+
+ );
+ },
+ (prevProps, nextProps) => {
+ const arePropsEqual =
+ prevProps.isSelected === nextProps.isSelected &&
+ prevProps.display === nextProps.display;
+
+ return arePropsEqual;
+ },
+);