Skip to content

Commit

Permalink
feat: added successful notification
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Jun 10, 2024
1 parent 8202e07 commit c446805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/container/BillingContainer/BillingContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ export default function BillingContainer(): JSX.Element {
// Clean up
downloadLink.remove();
URL.revokeObjectURL(csvUrl); // Release the memory associated with the object URL
notifications.success({
message: 'Download successful',
});
} catch (error) {
console.error('Error downloading the CSV file:', error);
notifications.error({
Expand Down

0 comments on commit c446805

Please sign in to comment.