Skip to content

Commit

Permalink
disallow allowAny
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Nov 16, 2023
1 parent 9719a2f commit b494a73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ module.exports = {
'@typescript-eslint/strict-boolean-expressions': [
'error',
{
allowAny: true,
allowNullableBoolean: true,
},
],
Expand Down
2 changes: 1 addition & 1 deletion resources/js/core/user/user-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class UserLogin {
// Timeout here is to let ujs events fire first, so that the disabling of the submit button
// in captcha.reset() happens _after_ the button has been re-enabled
window.setTimeout(() => {
if (xhr?.responseJSON?.captcha_triggered) {
if (xhr?.responseJSON?.captcha_triggered != null) {
this.captcha.trigger(captchaContainer);
}
this.captcha.reset(captchaContainer);
Expand Down

0 comments on commit b494a73

Please sign in to comment.