mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-09 03:07:20 +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
|
||||
const keysToPort = ['isPro', 'displayName', 'settings'];
|
||||
keysToPort.forEach(key => {
|
||||
if (user && user[key] !== undefined) {
|
||||
newUser[key] = user[key];
|
||||
if (this.state.user && this.state.user[key] !== undefined) {
|
||||
newUser[key] = this.state.user[key];
|
||||
}
|
||||
});
|
||||
// storing actual firebase user object for accessing functions like updateProfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user