Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Fix warranty section visibility when lifetime warranty is enabled (#875)

Copilotfd4106525049
diff --git a/frontend/pages/item/[id]/index.vue b/frontend/pages/item/[id]/index.vue
index 3b2ae822..b54a0524 100644
--- a/frontend/pages/item/[id]/index.vue
+++ b/frontend/pages/item/[id]/index.vue
@@ -294,7 +294,7 @@
if (preferences.value.showEmpty) {
return true;
}
- return validDate(item.value?.warrantyExpires);
+ return item.value?.lifetimeWarranty || validDate(item.value?.warrantyExpires);
});
const warrantyDetails = computed(() => {