fix: remove console.error and update uploadPhoto type signature in item creation
This commit is contained in:
@@ -59,7 +59,7 @@ export default function CreateItemPage() {
|
||||
setCurrentUser(JSON.parse(savedUser));
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Failed to load initial data:', err);
|
||||
// Silently handle initial data load failure - use default empty state
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ interface UseItemCreateReturn {
|
||||
goToStep: (step: 'details' | 'photo' | 'preview' | 'confirm') => void;
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
uploadPhoto: (file: File) => Promise<void>;
|
||||
uploadPhoto: (file: File, photoItemId?: number) => Promise<void>;
|
||||
submitItem: (userId: number) => Promise<any>;
|
||||
reset: () => void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user