Remove double negative

This commit is contained in:
Ludovic Stephan 2021-05-04 21:43:48 +02:00
parent 339223bec0
commit 7171a7567c

View file

@ -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)
},
})