We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7caae commit e65cc4eCopy full SHA for e65cc4e
components/dashboard/src/Insights.tsx
@@ -72,8 +72,6 @@ export const Insights = () => {
72
<SelectValue placeholder="Select time range" />
73
</SelectTrigger>
74
<SelectContent>
75
- {/* here for debugging, probably not useful */}
76
- <SelectItem value="day">Last 24 hours</SelectItem>{" "}
77
<SelectItem value="week">Last 7 days</SelectItem>
78
<SelectItem value="month">Last 30 days</SelectItem>
79
<SelectItem value="year">Last 365 days</SelectItem>
@@ -91,7 +89,7 @@ export const Insights = () => {
91
89
92
90
{errorMessage && (
93
<Alert type="error" className="mt-4">
94
- {errorMessage}
+ {errorMessage instanceof Error ? errorMessage.message : "An error occurred."}
95
</Alert>
96
)}
97
0 commit comments