diff --git a/addons/point_of_sale/static/src/app/navbar/closing_popup/closing_popup.js b/addons/point_of_sale/static/src/app/navbar/closing_popup/closing_popup.js index ce44bd997d1..9c4495ac81e 100644 --- a/addons/point_of_sale/static/src/app/navbar/closing_popup/closing_popup.js +++ b/addons/point_of_sale/static/src/app/navbar/closing_popup/closing_popup.js @@ -110,7 +110,7 @@ export class ClosePosPopup extends AbstractAwaitablePopup { handleInputChange(paymentId, event) { if (event.target.classList.contains('invalid-cash-input')) return; let expectedAmount; - if (paymentId === this.defaultCashDetails.id) { + if (paymentId === this.defaultCashDetails?.id) { this.manualInputCashCount = true; this.moneyDetails = null; this.state.notes = "";