fix: pass expected object to isAudited (#49548)

This commit is contained in:
Naomi Carrigan
2023-03-07 11:15:39 -08:00
committed by GitHub
parent 5f59b2b8c7
commit 04ce4e7709

View File

@@ -4,7 +4,7 @@ function isAuditedCert(language, superblock) {
if (!language || !superblock)
throw Error('Both arguments must be provided for auditing');
const auditedSuperBlocks = getAuditedSuperBlocks(language);
const auditedSuperBlocks = getAuditedSuperBlocks({ language });
return auditedSuperBlocks.includes(superblock);
}