diff --git a/frontend/src/hooks/useDeleteImages.ts b/frontend/src/hooks/useDeleteImages.ts index 5cfd19358..a8ec0e6ea 100644 --- a/frontend/src/hooks/useDeleteImages.ts +++ b/frontend/src/hooks/useDeleteImages.ts @@ -36,7 +36,7 @@ export const useDeleteImages = () => { showInfoDialog({ title: 'Some Files Could Not Be Deleted', message: `The following file(s) could not be deleted from your device: ${failedPaths - .map((path) => path.split('/').pop()) + .map((path) => path.split(/[/\\]/).pop()) .join(', ')}`, variant: 'error', }),