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:
parent
29800356de
commit
2dcce82fe4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue