Fix bug
This commit is contained in:
parent
62e76ad588
commit
619a1b9e53
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
|
||||||
|
|
||||||
const avatarId = avatar ? avatar.id : null;
|
const avatarId = avatar ? avatar.id : null;
|
||||||
const bannerId = banner ? banner.id : null;
|
const bannerId = banner ? banner.id : null;
|
||||||
const avatarUrl = DriveFiles.getPublicUrl(avatar);
|
const avatarUrl = avatar ? DriveFiles.getPublicUrl(avatar) : null;
|
||||||
const bannerUrl = DriveFiles.getPublicUrl(banner);
|
const bannerUrl = banner ? DriveFiles.getPublicUrl(banner) : null;
|
||||||
const avatarColor = avatar && avatar.properties.avgColor ? avatar.properties.avgColor : null;
|
const avatarColor = avatar && avatar.properties.avgColor ? avatar.properties.avgColor : null;
|
||||||
const bannerColor = banner && avatar.properties.avgColor ? banner.properties.avgColor : null;
|
const bannerColor = banner && avatar.properties.avgColor ? banner.properties.avgColor : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue