From 2dcce82fe4f9973325989fb3ac466c7cade39e34 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Mon, 21 Jul 2014 18:03:11 +0000 Subject: [PATCH] Fix check for using default cover image Closes #3348 - Cover attribute is a string so its typeof will always return string. Switch check to Ember.isBlank. --- core/client/controllers/settings/users/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/controllers/settings/users/user.js b/core/client/controllers/settings/users/user.js index f9bf741d86..2d25c11f40 100644 --- a/core/client/controllers/settings/users/user.js +++ b/core/client/controllers/settings/users/user.js @@ -14,7 +14,7 @@ var SettingsUserController = Ember.ObjectController.extend({ cover: function () { var cover = this.get('user.cover'); - if (typeof cover !== 'string') { + if (Ember.isBlank(cover)) { cover = this.get('coverDefault'); } return cover;