Skip to content

Commit

Permalink
Fix typo in hasTrustFramewok
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Oct 7, 2024
1 parent 71fa9fa commit 6bbd45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/api/accreditation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export class AccreditationController {
);
}

const hasTrustFramewok = trustFramework && trustFrameworkId;
const hasTrustFramework = trustFramework && trustFrameworkId;

if (!hasTrustFramewok && value === AccreditationRequestType.authorize) {
if (!hasTrustFramework && value === AccreditationRequestType.authorize) {
throw new Error('trustFramework and trustFrameworkId are required for an authorize operation');
}

Expand Down

0 comments on commit 6bbd45c

Please sign in to comment.