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,
|
selected,
|
||||||
onClick,
|
onClick,
|
||||||
}: SelectableItemCardProps) {
|
}: SelectableItemCardProps) {
|
||||||
const { formatWeight, formatPrice } = useFormatters();
|
const { weight: formatWeight, price: formatPrice } = useFormatters();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -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++;
|
||||||
|
|||||||
Reference in New Issue
Block a user