From 7171a7567cf5dff791d365a28f50f563fb36b7f2 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Tue, 4 May 2021 21:43:48 +0200 Subject: [PATCH] Remove double negative --- kfet/static/kfet/js/account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }, })