fix: SelectableItemCard used wrong formatter names, globalItems imageFilename→imageUrl
All checks were successful
CI / ci (push) Successful in 1m12s
CI / e2e (push) Has been skipped
CI / deploy (push) Successful in 14s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 15:13:23 +02:00
parent 2beabe88f9
commit adbc13eb15
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export function SelectableItemCard({
selected, selected,
onClick, onClick,
}: SelectableItemCardProps) { }: SelectableItemCardProps) {
const { formatWeight, formatPrice } = useFormatters(); const { weight: formatWeight, price: formatPrice } = useFormatters();
return ( return (
<button <button

View File

@@ -103,7 +103,8 @@ export async function completeOnboarding(
userId, userId,
weightGrams: gi.weightGrams, weightGrams: gi.weightGrams,
priceCents: gi.priceCents, priceCents: gi.priceCents,
imageFilename: gi.imageFilename, // globalItem images are external URLs, not S3 filenames — skip copying
// The item inherits its image via globalItemId linkage
globalItemId: gi.id, globalItemId: gi.id,
}); });
itemsCreated++; itemsCreated++;