diff --git a/client/src/pages/spools/list.tsx b/client/src/pages/spools/list.tsx index c153309..d19f73f 100644 --- a/client/src/pages/spools/list.tsx +++ b/client/src/pages/spools/list.tsx @@ -189,7 +189,7 @@ export const SpoolList: React.FC = () => { const archiveSpoolPopup = async (spool: ISpoolCollapsed) => { // If the spool has no remaining weight, archive it immediately since it's likely not a mistake - if (spool.remaining_weight && spool.remaining_weight == 0) { + if (spool.remaining_weight != undefined && spool.remaining_weight <= 0) { await archiveSpool(spool, true); } else { confirm({ diff --git a/client/src/pages/spools/show.tsx b/client/src/pages/spools/show.tsx index abf0f19..acfb27d 100644 --- a/client/src/pages/spools/show.tsx +++ b/client/src/pages/spools/show.tsx @@ -57,7 +57,7 @@ export const SpoolShow: React.FC = () => { return } // If the spool has no remaining weight, archive it immediately since it's likely not a mistake - if (spool.remaining_weight && spool.remaining_weight == 0) { + if (spool.remaining_weight != undefined && spool.remaining_weight <= 0) { await archiveSpool(spool, true); } else { confirm({