mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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 () {
|
cover: function () {
|
||||||
var cover = this.get('user.cover');
|
var cover = this.get('user.cover');
|
||||||
if (typeof cover !== 'string') {
|
if (Ember.isBlank(cover)) {
|
||||||
cover = this.get('coverDefault');
|
cover = this.get('coverDefault');
|
||||||
}
|
}
|
||||||
return cover;
|
return cover;
|
||||||
|
|
Loading…
Add table
Reference in a new issue