From db5c36a3bfe21246d3d3225daa1a52701bec1d6a Mon Sep 17 00:00:00 2001 From: p-sw Date: Fri, 12 Jul 2024 13:55:41 +0900 Subject: [PATCH] fix(lib): add undefined check on vcn VariantProps processing --- packages/react/lib/vcn.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/lib/vcn.ts b/packages/react/lib/vcn.ts index d314915..e829f73 100644 --- a/packages/react/lib/vcn.ts +++ b/packages/react/lib/vcn.ts @@ -270,6 +270,7 @@ export function vcn< for (const [variantName, variantKey] of Object.entries( otherVariantProps, ) as VariantKVEntry) { + if (typeof variantKey === "undefined") continue; kv[variantName] = variantKey; }