handle undefined
This commit is contained in:
parent
ae4dbe1940
commit
84e439316b
1 changed files with 5 additions and 5 deletions
|
|
@ -49,14 +49,14 @@ const getAnUser = async publicKey => {
|
||||||
|
|
||||||
/** @type {Common.SchemaTypes.User} */
|
/** @type {Common.SchemaTypes.User} */
|
||||||
const u = {
|
const u = {
|
||||||
avatar: oldProfile.avatar,
|
avatar: oldProfile.avatar || null,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
bio,
|
bio: bio || null,
|
||||||
displayName: oldProfile.displayName,
|
displayName: oldProfile.displayName || null,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
lastSeenApp,
|
lastSeenApp: lastSeenApp || 0,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
lastSeenNode,
|
lastSeenNode: lastSeenNode || 0,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
publicKey
|
publicKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue