diff --git a/web_src/js/index.js b/web_src/js/index.js index 0b5ac493ed..fc46a2e694 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2421,7 +2421,7 @@ function u2fError(errorType) { u2fErrors[errorType].removeClass('hide'); Object.keys(u2fErrors).forEach((type) => { - if (type !== errorType) { + if (type !== `${errorType}`) { u2fErrors[type].addClass('hide'); } });