Show 0% wear in nozzle rack hover card (#300)

The wear field was hidden when wear was 0 because the condition
`slot.wear > 0` treated 0 the same as null/unavailable. New nozzles
showed no wear info at all. Removed the > 0 check so "Wear: 0%"
displays correctly while still hiding the field when wear is null
(non-H2C printers).
This commit is contained in:
maziggy
2026-02-10 11:00:54 +01:00
parent c3018f06b2
commit 39da463c90
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -530,8 +530,8 @@ function NozzleSlotHoverCard({ slot, index, children }: {
</span>
</div>
{/* Wear (hide if null/0) */}
{slot.wear != null && slot.wear > 0 && (
{/* Wear (hide if null) */}
{slot.wear != null && (
<div className="flex items-center justify-between">
<span className="text-[10px] uppercase tracking-wider text-bambu-gray font-medium">{t('printers.nozzleWear')}</span>
<span className="text-xs text-white font-semibold">{slot.wear}%</span>