1
0
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:
Kushagra Gour 2024-04-30 18:07:51 +05:30
parent 8e39293da0
commit 3b26fb7fb7

View File

@ -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