mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user