Skip to content

Commit

Permalink
chore: Split domain list and check for exact matches
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
  • Loading branch information
flozia and Vinnl committed Apr 18, 2023
1 parent 5b539ab commit 3f7097b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/breachResolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ async function appendBreachResolutionChecklist (userBreachData, options = {}) {
for (const { breaches } of verifiedEmails) {
breaches.forEach(b => {
const dataClasses = b.DataClasses
const blockList = AppConstants.HIBP_BREACH_DOMAIN_BLOCKLIST
const showLink = b.Domain && (blockList && !blockList.includes(b.Domain))
const blockList = (AppConstants.HIBP_BREACH_DOMAIN_BLOCKLIST ?? '').split(',')
const showLink = b.Domain && !blockList.includes(b.Domain)

const args = {
companyName: b.Name,
Expand Down

0 comments on commit 3f7097b

Please sign in to comment.