diff --git a/theatre/core/src/propTypes/index.ts b/theatre/core/src/propTypes/index.ts index 54836eb..81d496c 100644 --- a/theatre/core/src/propTypes/index.ts +++ b/theatre/core/src/propTypes/index.ts @@ -124,10 +124,7 @@ export const compound = ( const deserializedSub = propConfig.deserialize( (json as $IntentionalAny)[key] as unknown, ) - if ( - typeof deserializedSub !== 'undefined' && - deserializedSub !== null - ) { + if (deserializedSub != null) { atLeastOnePropWasDeserialized = true deserialized[key] = deserializedSub }