diff --git a/src/features/plan/components/BrandingGuide.tsx b/src/features/plan/components/BrandingGuide.tsx index 1ebe430..8f51b8e 100644 --- a/src/features/plan/components/BrandingGuide.tsx +++ b/src/features/plan/components/BrandingGuide.tsx @@ -439,17 +439,23 @@ function BrandConsistencyTab({ inconsistencies }: { inconsistencies: BrandIncons onClick={() => setExpanded(expanded === i ? null : i)} className="w-full flex items-center justify-between p-5 h-auto text-left hover:bg-slate-50/50 rounded-none" > -
-
- {item.values.filter((v) => !v.isCorrect).length} -
-
-

{item.field}

-

- {item.values.filter((v) => !v.isCorrect).length}개 채널 불일치 -

-
-
+ {(() => { + const mismatchCount = item.values.filter((v) => !v.isCorrect).length; + const isAllConsistent = mismatchCount === 0; + return ( +
+
+ {isAllConsistent ? : mismatchCount} +
+
+

{item.field}

+

+ {isAllConsistent ? '전 채널 일치' : `${mismatchCount}개 채널 불일치`} +

+
+
+ ); + })()} setExpanded(expanded === i ? null : i)} className="w-full flex items-center justify-between p-5 h-auto text-left hover:bg-slate-50/50 rounded-none" > -
-
- {item.values.filter(v => !v.isCorrect).length} -
-
-

{item.field}

-

- {item.values.filter(v => !v.isCorrect).length}개 채널 불일치 -

-
-
+ {(() => { + const mismatchCount = item.values.filter(v => !v.isCorrect).length; + const isAllConsistent = mismatchCount === 0; + return ( +
+
+ {isAllConsistent ? : mismatchCount} +
+
+

{item.field}

+

+ {isAllConsistent ? '전 채널 일치' : `${mismatchCount}개 채널 불일치`} +

+
+
+ ); + })()}