This commit is contained in:
Ludovic Stephan 2021-05-05 18:03:56 +02:00
parent f4def6d51b
commit 6938d5283a

View file

@ -31,11 +31,7 @@ var Account = Backbone.Model.extend({
view: function () { view: function () {
var view_class; var view_class;
<<<<<<< HEAD
if (this.is_empty_account()) { if (this.is_empty_account()) {
=======
if (!this.is_valid()) {
>>>>>>> New checkout model and manager
view_class = EmptyAccountView view_class = EmptyAccountView
} else if (this.get("trigramme") == "LIQ") { } else if (this.get("trigramme") == "LIQ") {
view_class = LIQView view_class = LIQView
@ -49,13 +45,8 @@ var Account = Backbone.Model.extend({
this.view().render(); this.view().render();
}, },
<<<<<<< HEAD
is_empty_account: function () { is_empty_account: function () {
return (this.id == 0) return (this.id == 0)
=======
is_valid: function () {
return (this.id != 0)
>>>>>>> New checkout model and manager
}, },
}) })