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.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
u2fErrors[errorType].removeClass('hide');
Object.keys(u2fErrors).forEach((type) => {
- if (type !== errorType) {
+ if (type !== `${errorType}`) {
u2fErrors[type].addClass('hide');
}
});