Skip to content

Commit

Permalink
Remove immediate from debounce login
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Apr 14, 2021
1 parent f7f13da commit 4d1061a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/AuthenticationWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class AuthenticationWebView extends React.PureComponent {
this.dismiss();
}

// eslint-disable-next-line react/sort-comp
debouncedLogin = debounce(params => this.login(params), 3000, true);
// Force 3s delay so the server has time to evaluate the token
debouncedLogin = debounce(params => this.login(params), 3000);

tryLogin = debounce(async() => {
const { Accounts_Iframe_api_url, Accounts_Iframe_api_method } = this.props;
Expand Down

0 comments on commit 4d1061a

Please sign in to comment.