File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 478478 let postFiltered = [ ] ;
479479
480480 for ( let i = 0 ; i < initialCredentials . length ; i ++ ) {
481- const _credential = initialCredentials [ i ] ;
482- const zxcvbn_result = zxcvbn ( _credential . password ) ;
481+ if ( initialCredentials [ i ] . password !== null ) {
482+ const zxcvbn_result = zxcvbn ( initialCredentials [ i ] . password ) ;
483483
484- if ( zxcvbn_result . score >= strength_min && zxcvbn_result . score <= strength_max ) {
485- postFiltered . push ( initialCredentials [ i ] ) ;
486- }
484+ if ( zxcvbn_result . score >= strength_min && zxcvbn_result . score <= strength_max ) {
485+ postFiltered . push ( initialCredentials [ i ] ) ;
486+ }
487+ }
487488 }
488489 $scope . filtered_credentials = $scope . filterHidden ( postFiltered ) ;
489490 } ;
510511 for ( let i = 0 ; i < initialCredentials . length ; i ++ ) {
511512 const _credential = initialCredentials [ i ] ;
512513
513- if ( _credential . compromised !== false ) {
514+ if ( _credential . compromised !== false && _credential . compromised !== null ) {
514515 postFiltered . push ( initialCredentials [ i ] ) ;
515516 }
516517 }
You can’t perform that action at this time.
0 commit comments