diff --git a/frontend/src/app/features/shop/product-detail.component.ts b/frontend/src/app/features/shop/product-detail.component.ts index df01226..56e01b0 100644 --- a/frontend/src/app/features/shop/product-detail.component.ts +++ b/frontend/src/app/features/shop/product-detail.component.ts @@ -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(); diff --git a/frontend/src/app/features/shop/shop-page.component.ts b/frontend/src/app/features/shop/shop-page.component.ts index 9bfb6e5..b0ce242 100644 --- a/frontend/src/app/features/shop/shop-page.component.ts +++ b/frontend/src/app/features/shop/shop-page.component.ts @@ -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();