mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
Fix warranty section visibility when lifetime warranty is enabled (#875)
* Initial plan * Fix warranty section visibility when lifetime warranty is enabled Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com>
This commit is contained in:
@@ -294,7 +294,7 @@
|
|||||||
if (preferences.value.showEmpty) {
|
if (preferences.value.showEmpty) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return validDate(item.value?.warrantyExpires);
|
return item.value?.lifetimeWarranty || validDate(item.value?.warrantyExpires);
|
||||||
});
|
});
|
||||||
|
|
||||||
const warrantyDetails = computed(() => {
|
const warrantyDetails = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user