AboutPage: React properly if no profile pic is defined, fixes #264

This commit is contained in:
Sebastian Wolf 2021-01-02 20:06:53 +01:00
parent 2c078307dc
commit f26820ef75
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -176,7 +176,7 @@ Page {
}
ProfileThumbnail {
photoData: aboutPage.userInformation.profile_photo.small
photoData: ((typeof aboutPage.userInformation.profile_photo !== "undefined") ? aboutPage.userInformation.profile_photo.small : {})
width: Theme.itemSizeExtraLarge
height: Theme.itemSizeExtraLarge
replacementStringHint: aboutPage.userInformation.first_name + " " + aboutPage.userInformation.last_name