diff --git a/bookie/src/app/sales/home/sales-home.component.ts b/bookie/src/app/sales/home/sales-home.component.ts index b6e7f9f..5d4cab3 100644 --- a/bookie/src/app/sales/home/sales-home.component.ts +++ b/bookie/src/app/sales/home/sales-home.component.ts @@ -149,6 +149,8 @@ export class SalesHomeComponent { tap((result: boolean | { id: string; name: string; discount: number }[]) => { if (result) { this.bs.discount(result as { id: string; name: string; discount: number }[]); + } else { + throw new Error('Cancelled'); } }), switchMap(() => this.billTypeDialog()),