Don't incorrectly assign an avatar background when there isn't an image

This commit is contained in:
Maurice Parker 2019-10-30 15:46:20 -05:00
parent 8d85d01da4
commit 30da68218f
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ final class AvatarView: UIView {
override func layoutSubviews() {
imageView.setFrameIfNotEqual(rectForImageView())
if (isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
if (image != nil && isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
backgroundColor = AppAssets.avatarBackgroundColor
} else {
backgroundColor = nil