Skip to content

Commit 101aa44

Browse files
Static test errors fixed
1 parent 17d0dba commit 101aa44

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/code/Magento/Customer/view/frontend/web/js/show-password.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
define([
77
'jquery'
8-
], function($) {
8+
], function ($) {
99
'use strict';
1010

1111
$.widget('mage.showPassword', {
@@ -40,10 +40,11 @@ define([
4040
*/
4141
_showPassword: function () {
4242
var passwordField = this.options.passwordSelector;
43-
$(passwordField).attr(
44-
"type",
45-
($(passwordField).attr("type") == this.options.passwordInputType) ? this.options.textInputType : this.options.passwordInputType
43+
44+
$(passwordField).attr('type',
45+
$(passwordField).attr('type') === this.options.passwordInputType
46+
? this.options.textInputType : this.options.passwordInputType
4647
);
4748
}
4849
});
49-
});
50+
});

0 commit comments

Comments
 (0)