From 86b9a78284f4fc4949f2b14c6460e46d0b336c76 Mon Sep 17 00:00:00 2001 From: Prakhar1808 Date: Fri, 30 Oct 2026 19:03:24 +0530 Subject: [PATCH] fix: failed image deletion dialog displays windows path (#1657) --- frontend/src/hooks/useDeleteImages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }),