From 80cfc893111cf62e15d78ce23edd7673156620e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 3 Apr 2019 12:31:35 +0200 Subject: Use isMobile mixin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/ContactDetails/ContactDetailsAvatar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue index 46e04c23..4ee26ac0 100644 --- a/src/components/ContactDetails/ContactDetailsAvatar.vue +++ b/src/components/ContactDetails/ContactDetailsAvatar.vue @@ -239,7 +239,9 @@ export default { }, updateImgSize() { - this.updateHeightWidth(this.$refs.img.naturalHeight, this.$refs.img.naturalWidth) + if (this.contact.photo) { + this.updateHeightWidth(this.$refs.img.naturalHeight, this.$refs.img.naturalWidth) + } }, /** * Updates the current height and width data -- cgit v1.2.3