Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit 01fb53b

Browse files
committed
authUser.uid => authUser.user.uid
1 parent 02c9919 commit 01fb53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/signup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SignUpForm extends Component {
3939
.doCreateUserWithEmailAndPassword(email, passwordOne)
4040
.then(authUser => {
4141
// Create a user in your own accessible Firebase Database too
42-
db.doCreateUser(authUser.uid, username, email)
42+
db.doCreateUser(authUser.user.uid, username, email)
4343
.then(() => {
4444
this.setState(() => ({ ...INITIAL_STATE }));
4545
Router.push(routes.HOME);

0 commit comments

Comments
 (0)