diff --git a/src/accounting/static/js/description-editor.js b/src/accounting/static/js/description-editor.js index 42301b7..b36dbbc 100644 --- a/src/accounting/static/js/description-editor.js +++ b/src/accounting/static/js/description-editor.js @@ -303,8 +303,11 @@ class DescriptionEditor { */ onOpen() { this.description = this.lineItemEditor.description === null? "": this.lineItemEditor.description; - this.#onDescriptionChange(); this.#setConfirmedAccount(); + this.#onDescriptionChange(); + if (this.#isAccountConfirmed) { + this.selectAccount(this.#confirmedAccount); + } } /** @@ -320,7 +323,6 @@ class DescriptionEditor { } else { this.#confirmedAccount = null; } - this.selectAccount(this.#confirmedAccount); } /**