diff --git a/libs/common/src/services/audit.service.ts b/libs/common/src/services/audit.service.ts index 7762c2cbd93..9e0f208c339 100644 --- a/libs/common/src/services/audit.service.ts +++ b/libs/common/src/services/audit.service.ts @@ -55,7 +55,7 @@ export class AuditService implements AuditServiceAbstraction { */ protected async fetchLeakedPasswordCount(password: string): Promise { const hashBytes = await this.cryptoFunctionService.hash(password, "sha1"); - const hash = Utils.fromBufferToHex(hashBytes).toUpperCase(); + const hash = Utils.fromArrayToHex(hashBytes)!.toUpperCase(); const hashStart = hash.substr(0, 5); const hashEnding = hash.substr(5);