0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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.
This commit is contained in:
Jason Williams 2014-07-21 18:03:11 +00:00
parent 29800356de
commit 2dcce82fe4

View file

@ -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;