Skip to content

Commit

Permalink
Merge pull request #1 from nelifs/patch-1
Browse files Browse the repository at this point in the history
Error fix
  • Loading branch information
kravetsone authored Nov 5, 2022
2 parents da3f3f0 + 205f586 commit b94653e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/playerInfo/playerInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export class PlayerInfo {
this.abyssLevel = data.towerLevelIndex;
this.charactersPreview = data.showAvatarInfoList.map(
(character: { avatarId: number; level: number }) => {
return new CharacterPreview(language, character);
return new CharacterPreview(language, character) ?? undefined;
}
);
this.nameCardsPreview = data.showNameCardIdList.map((nameCardId) => {
return new NameCard(language, nameCardId);
return new NameCard(language, nameCardId) ?? undefined;
});
this.profilePicture = new ProfilePicture(language, data.profilePicture);
}
Expand Down

0 comments on commit b94653e

Please sign in to comment.