Skip to content

Commit

Permalink
deleted unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteri committed Jan 5, 2025
1 parent f4c48df commit 65b3e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65b3e06

Please sign in to comment.