mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-09 19:24:58 +02:00
fix login bug
This commit is contained in:
parent
8e39293da0
commit
3b26fb7fb7
@ -192,8 +192,8 @@ export default class App extends Component {
|
|||||||
// port some keys from localstorage user to new auth user
|
// port some keys from localstorage user to new auth user
|
||||||
const keysToPort = ['isPro', 'displayName', 'settings'];
|
const keysToPort = ['isPro', 'displayName', 'settings'];
|
||||||
keysToPort.forEach(key => {
|
keysToPort.forEach(key => {
|
||||||
if (user && user[key] !== undefined) {
|
if (this.state.user && this.state.user[key] !== undefined) {
|
||||||
newUser[key] = user[key];
|
newUser[key] = this.state.user[key];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// storing actual firebase user object for accessing functions like updateProfile
|
// storing actual firebase user object for accessing functions like updateProfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user