diff --git a/btc-UI/src/app/components/middle-section/middle-section.component.ts b/btc-UI/src/app/components/middle-section/middle-section.component.ts index 8c97d8e..f7a33bb 100755 --- a/btc-UI/src/app/components/middle-section/middle-section.component.ts +++ b/btc-UI/src/app/components/middle-section/middle-section.component.ts @@ -65,6 +65,12 @@ export class MiddleSectionComponent implements OnInit, OnDestroy { this.filledRows = [...rows, ...emptyRows].slice(0, 5); this.calculateTotal(); + + // Show Confirm button only if at least one row has data (label and numbers) + // and only after repeat is clicked (showRepeatTicket flag) + this.showConfirmButton = this.showRepeatTicket && this.filledRows.some( + row => row.label && row.numbers && row.numbers.length > 0 + ); } showSalesTotal: boolean = false;