diff --git a/client/src/pages/spools/list.tsx b/client/src/pages/spools/list.tsx index 969dd4a..7497e62 100644 --- a/client/src/pages/spools/list.tsx +++ b/client/src/pages/spools/list.tsx @@ -56,7 +56,7 @@ function collapseSpool(element: ISpool): ISpoolCollapsed { } else { filament_name = element.filament.name ?? element.filament.id.toString(); } - if (!element.price) { + if (element.price === undefined) { element.price = element.filament.price; } return { diff --git a/client/src/pages/spools/show.tsx b/client/src/pages/spools/show.tsx index cccbba3..ccba751 100644 --- a/client/src/pages/spools/show.tsx +++ b/client/src/pages/spools/show.tsx @@ -32,7 +32,7 @@ export const SpoolShow: React.FC = () => { const spoolPrice = (item: ISpool) => { let spoolPrice = ""; - if (!item.price) { + if (item.price === undefined) { spoolPrice = `${item.filament.price}`; return spoolPrice; }