Skip to content

Commit

Permalink
Simplify error message formatting in checkout component.
Browse files Browse the repository at this point in the history
Removed the HTTP status code from the error message to provide a clearer and more user-friendly message. This change maintains focus on the error details and improves readability of the error notifications for end-users.
  • Loading branch information
Zerskk committed Dec 3, 2024
1 parent 921e0db commit 5d420e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archigator/src/app/checkout/checkout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class CheckoutComponent implements OnInit {

const errDetail = error.error?.detail || 'An error occurred';

this.errorMessage = `Error ${error.status}: ${errDetail}`;
this.errorMessage = `${errDetail}`;

this.spinLoader = false;
}
Expand Down

0 comments on commit 5d420e3

Please sign in to comment.