diff --git a/kfet/static/kfet/js/account.js b/kfet/static/kfet/js/account.js index a3f23e1c..07fd6688 100644 --- a/kfet/static/kfet/js/account.js +++ b/kfet/static/kfet/js/account.js @@ -31,7 +31,7 @@ var Account = Backbone.Model.extend({ }, view: function () { - if (!this.is_empty_account()) { + if (this.is_empty_account()) { view_class = EmptyAccountView } else if (this.get("trigramme") == 'LIQ') { view_class = LIQView @@ -46,7 +46,7 @@ var Account = Backbone.Model.extend({ }, is_empty_account: function () { - return (this.id != 0) + return (this.id == 0) }, })