From 65b3e063b48f11dc4ecaa5bf6d31150dad96bb37 Mon Sep 17 00:00:00 2001 From: Christine <132790780+aesteri@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:49:05 -0500 Subject: [PATCH] deleted unnecessary code --- src/components/PreviewCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PreviewCard.tsx b/src/components/PreviewCard.tsx index f86df15..a7ab90b 100644 --- a/src/components/PreviewCard.tsx +++ b/src/components/PreviewCard.tsx @@ -41,14 +41,14 @@ function PreviewCard({ selectedData }: PreviewCardProps) { if (response.status === 503) { const errorMsg = await response.text(); setError(`Failed to delete: ${errorMsg} \nTry again in a few minutes!`); + console.log(errorMsg); } else { const errorMsg = await response.text(); setError(`Failed to delete: ${errorMsg}`); + console.log(errorMsg); } } else { - const result = await response.json(); setSuccess('File deleted successfully!'); - console.log('Delete successful:', result); } } catch (error) { console.error('Error sending Delete request:', error);