style: apply prettier formatting
All checks were successful
PR Checks / prettier-autofix (pull_request) Successful in 8s
PR Checks / security-sast (pull_request) Successful in 30s
PR Checks / test-backend (pull_request) Successful in 27s
PR Checks / test-frontend (pull_request) Successful in 59s

This commit is contained in:
printcalc-ci
2026-03-23 15:15:15 +00:00
parent 51c2bf6985
commit 02aac24a09
2 changed files with 2 additions and 6 deletions

View File

@@ -237,9 +237,7 @@ export class ProductDetailComponent {
this.setSelectedImageAssetId(null);
this.modelFile.set(null);
const isNotFound = error?.status === 404;
this.error.set(
isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR',
);
this.error.set(isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR');
this.setResponseStatus(isNotFound ? 404 : 503);
if (this.shouldApplyFallbackSeo(error)) {
this.applyFallbackSeo();

View File

@@ -120,9 +120,7 @@ export class ShopPageComponent {
this.categoryNodes.set([]);
this.selectedCategory.set(null);
this.products.set([]);
this.error.set(
isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR',
);
this.error.set(isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR');
this.setResponseStatus(isNotFound ? 404 : 503);
if (this.shouldApplyErrorSeo(error)) {
this.applyErrorSeo();