Skip to content

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

Open
@sergey-zero

Description

@sergey-zero

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 👎

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions