1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-22 21:21:35 +01:00

[PM-16484] Fixing the at risk member count update (#12660)

* Fixing the at risk member count update

* Fixing the code to single lines

* fixing formatting issues
This commit is contained in:
Tom 2025-01-02 14:21:58 -05:00 committed by GitHub
parent e47b5a15fd
commit 3917263703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,10 +291,11 @@ export class RiskInsightsReportService {
} as ApplicationHealthReportDetail;
if (isAtRisk) {
(reportDetail.atRiskPasswordCount = reportDetail.atRiskPasswordCount + 1),
(reportDetail.atRiskMemberDetails = this.getUniqueMembers(
reportDetail.atRiskMemberDetails.concat(newUriDetail.cipherMembers),
));
reportDetail.atRiskPasswordCount = reportDetail.atRiskPasswordCount + 1;
reportDetail.atRiskMemberDetails = this.getUniqueMembers(
reportDetail.atRiskMemberDetails.concat(newUriDetail.cipherMembers),
);
reportDetail.atRiskMemberCount += reportDetail.atRiskMemberDetails.length;
}
reportDetail.memberCount = reportDetail.memberDetails.length;