Fixed client showing wrong spool price if overridden to 0

Resolves #431
This commit is contained in:
Donkie
2024-08-05 19:43:05 +02:00
parent 93d27a96d3
commit 48ef3a23f2
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export const SpoolShow: React.FC<IResourceComponentsProps> = () => {
const spoolPrice = (item: ISpool) => {
let spoolPrice = "";
if (!item.price) {
if (item.price === undefined) {
spoolPrice = `${item.filament.price}`;
return spoolPrice;
}