We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b3551 commit e9e775fCopy full SHA for e9e775f
shared-libs/cht-datasource/src/qualifier.ts
@@ -312,7 +312,7 @@ export const byPersonQualifier = (data: unknown): PersonQualifier => {
312
throw new InvalidArgumentError(`Missing required fields in the parent hierarchy [${JSON.stringify(qualifier)}].`);
313
}
314
315
- if (!hasValidContactType(qualifier) && !hasValidLegacyContactType(qualifier, 'person')) {
+ if (hasValidContactType(qualifier) || hasValidLegacyContactType(qualifier, 'person') {
316
throw new InvalidArgumentError('Invalid type for contacts.');
317
318
0 commit comments