Skip to content

Commit adc63ef

Browse files
Update SparkyFitnessFrontend/src/hooks/Foods/useFoodForm.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1086ba8 commit adc63ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SparkyFitnessFrontend/src/hooks/Foods/useFoodForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ export function useCustomFoodForm({
10561056
brand: formData.brand,
10571057
is_quick_food: formData.is_quick_food,
10581058
is_custom: true,
1059-
barcode: formData.barcode ? formData.barcode.trim() : undefined,
1059+
barcode: formData.barcode.trim() || null,
10601060
provider_external_id: food?.provider_external_id,
10611061
provider_type: food?.provider_type,
10621062
};

0 commit comments

Comments
 (0)