From 09ae31914aef398e9c373015d7c15a6a764d78a3 Mon Sep 17 00:00:00 2001 From: elmiomar Date: Wed, 3 Apr 2024 06:08:33 -0400 Subject: [PATCH] cleanup comments --- angular/src/app/datacart/datacart.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angular/src/app/datacart/datacart.component.ts b/angular/src/app/datacart/datacart.component.ts index 31eb3f85..18d57375 100644 --- a/angular/src/app/datacart/datacart.component.ts +++ b/angular/src/app/datacart/datacart.component.ts @@ -79,7 +79,7 @@ export class DatacartComponent implements OnInit, AfterViewInit { } }) ).subscribe({ - next: (result: any) => { // Adjust the type as needed + next: (result: any) => { if (result) { this.isCartLoadedSuccessfully = true; this.dataCart.contents = result.contents; @@ -94,7 +94,7 @@ export class DatacartComponent implements OnInit, AfterViewInit { }, error: (error: string) => { console.error("Error loading cart:", error); - this.errorMessage = error; // Set the error message to display in the UI + this.errorMessage = error; // Error message to display in HTML this.isCartLoadedSuccessfully = false; } });