From f2df042c0a501b601937ee2cf898ee7189e92d0f Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sat, 3 May 2025 13:01:30 -0700 Subject: [PATCH] Feature Badge: fix --- src/common/components/FeatureBadge.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/components/FeatureBadge.tsx b/src/common/components/FeatureBadge.tsx index 2ce161141..d419bd5d0 100644 --- a/src/common/components/FeatureBadge.tsx +++ b/src/common/components/FeatureBadge.tsx @@ -18,8 +18,8 @@ export function FeatureBadge(props: Omit & { size?: 'sm' | 'md' | 'lg'; // default: 'sm' }) { - const featureKey = 'feature-badge-' + props.featureKey; - const { active, label, size = 'sm', color, children, ...badgeProps } = props; + const { featureKey: featureKeySuffix, active, label, size = 'sm', color, children, ...badgeProps } = props; + const featureKey = 'feature-badge-' + featureKeySuffix; // external state const isDismissed = useUIIsDismissed(featureKey) ?? false;