Skip to content

Commit b583505

Browse files
committed
Fix U2F error reasons always hidden
This strict equality check in `u2fError` was causing the error description to hide immediately after showing. `Object.keys` always returns strings, but `errorType` argument is usually a number type.
1 parent a3476e5 commit b583505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ function u2fError(errorType) {
24212421
u2fErrors[errorType].removeClass('hide');
24222422

24232423
Object.keys(u2fErrors).forEach((type) => {
2424-
if (type !== errorType) {
2424+
if (type !== `${errorType}`) {
24252425
u2fErrors[type].addClass('hide');
24262426
}
24272427
});

0 commit comments

Comments
 (0)