Skip to content

bug(profile): firebase v5.0.* causes userData.uid is undefined when creating profile #468

@nasimoyz

Description

@nasimoyz

What is the current behavior?

I'm probably missing something obvious, but I keep getting an error where undefined is provided in place of string when trying to write profile with creating new user.

image

It appears that in createUserProfile it attempts to access uid on userData, but it actually is found a layer deeper on user.

image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.

onSubmit:

    this.props.firebase.createUser({
      email: values.email,
      password: values.password,
    }, {
      email: values.email,
      organization: values.organization,
    });

rrfConfig:

const rrfConfig = {
  enableLogging: false,
  useFirestoreForProfile: true,
  userProfile: 'users',
};

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?

I'm using:

"firebase": "^5.0.1",
"react-redux-firebase": "^2.1.1",
"redux-firestore": "^0.5.2",

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions