mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 12:06:36 -05:00
fix: pass expected object to isAudited (#49548)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user