Add items with no price

This commit is contained in:
Joel Male
2024-08-26 10:38:20 +10:00
parent e49ebe02e0
commit 54d94d8d12
4 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class Helpers
/**
* Normalize prices
*/
public static function normalizePrice($price): float
public static function normalizePrice($price): ?float
{
return (is_string($price)) ? floatval($price) : $price;
}