Skip to content

Commit

Permalink
Fix: fix error in the parameter now that a different object is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
hepabolu committed Feb 18, 2024
1 parent 44df7d5 commit 6c9a1d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/passwordview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class PasswordView {
__renderPasswordStrength(passwordStrength) {
// we assume that the strength indicator is already calculated

const statsText = this.__getStatsDisplay(stats.password.passwordStrength);
const statsClass = this.__getStatsClass([stats.password.passwordStrength]);
const statsText = this.__getStatsDisplay(passwordStrength);
const statsClass = this.__getStatsClass([passwordStrength]);

// render strength
this.#passwordStrength.text(statsText);
Expand Down

0 comments on commit 6c9a1d6

Please sign in to comment.