fix: SelectableItemCard used wrong formatter names, globalItems imageFilename→imageUrl
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,7 @@ export function SelectableItemCard({
|
||||
selected,
|
||||
onClick,
|
||||
}: SelectableItemCardProps) {
|
||||
const { formatWeight, formatPrice } = useFormatters();
|
||||
const { weight: formatWeight, price: formatPrice } = useFormatters();
|
||||
|
||||
return (
|
||||
<button
|
||||
|
||||
@@ -103,7 +103,8 @@ export async function completeOnboarding(
|
||||
userId,
|
||||
weightGrams: gi.weightGrams,
|
||||
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,
|
||||
});
|
||||
itemsCreated++;
|
||||
|
||||
Reference in New Issue
Block a user