Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Codebmk committed Jan 23, 2025
1 parent 2aa8a4f commit edaa282
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netmanager-app/components/Analytics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ const NewAnalytics: React.FC = () => {
} catch (error) {
toast({
title: "Error",
description: error,
description:
error instanceof Error
? error.message
: "Failed to download data. Please try again.",
variant: "destructive",
});
} finally {
Expand Down

0 comments on commit edaa282

Please sign in to comment.