mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: fix user profile cleared on clearing an profile data
This commit is contained in:
@@ -203,10 +203,7 @@ export class Settings implements ICollection {
|
||||
}
|
||||
|
||||
setProfile(partial: Partial<Profile> | undefined) {
|
||||
const profile =
|
||||
partial === undefined || (!partial.fullName && !partial.profilePicture)
|
||||
? undefined
|
||||
: { ...this.getProfile(), ...partial };
|
||||
const profile = !partial ? undefined : { ...this.getProfile(), ...partial };
|
||||
return this.set("profile", profile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user