diff --git a/src/components/core/theme-provider/emotion-cache.tsx b/src/components/core/theme-provider/emotion-cache.tsx index 476c82e81..454f23fcb 100644 --- a/src/components/core/theme-provider/emotion-cache.tsx +++ b/src/components/core/theme-provider/emotion-cache.tsx @@ -63,12 +63,12 @@ export function EmotionCacheProvider(props: EmotionCacheProviderProps) { for (const { name, isGlobal } of inserted) { const style = cache.inserted[name]; - if (typeof style === "boolean") { + if (typeof style !== "string") { continue; } if (isGlobal) { - globals.push({ name, style: style! }); + globals.push({ name, style }); } else { styles += style; dataEmotionAttribute += ` ${name}`;