Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccountsTemplates.getField(fieldId).setError(error); #10

Open
sergey-zero opened this issue Dec 21, 2015 · 0 comments
Open

AccountsTemplates.getField(fieldId).setError(error); #10

sergey-zero opened this issue Dec 21, 2015 · 0 comments

Comments

@sergey-zero
Copy link

Crashing at this moment

if (error) {
    if(_.isObject(error.details)) {
      // If error.details is an object, we may try to set fields errors from it
      _.each(error.details, function(error, fieldId){
          AccountsTemplates.getField(fieldId).setError(error);
      });
    }

when error look like this

"error":{"error":"too-many-requests","reason":"Error, too many requests. Please slow down. You must wait 9 seconds before trying again.","details":{"timeToReset":8361},..

getField(fieldId) is undefined
If you quickly press on the button with the wrong login credentials, you got app crash 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant