Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elmiomar committed Apr 3, 2024
1 parent 1b6f00a commit 09ae319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular/src/app/datacart/datacart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
});
Expand Down

0 comments on commit 09ae319

Please sign in to comment.