chore: remove debug console.logs and add error handling

- Remove console.log statements from upload file dialog
- Add onError handler to display error toasts
- Update ErrorCode reference in use-file-drop

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-11-08 18:03:15 +00:00
parent 94d6a22ab2
commit b8c46217f7
2 changed files with 5 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export function useFileDrop({
errors: Err.ApplicationErrorData[]
}) => {
const conflictCount = errors.reduce((acc, error) => {
if (error.code === Err.Code.Conflict) {
if (error.code === Err.ErrorCode.Conflict) {
return acc + 1
}
return acc