We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a5e94 commit d54d649Copy full SHA for d54d649
1 file changed
apps/web/components/dashboard/activity-feed.tsx
@@ -16,6 +16,7 @@ import {
16
import { useMutation, usePaginatedQuery } from 'convex/react';
17
import { api } from '@repo/backend';
18
import type { Id } from '@repo/backend/_generated/dataModel';
19
+import { ConvexError } from 'convex/values';
20
21
import dynamic from 'next/dynamic';
22
import { RichTextViewer } from '@/components/editor/rich-text-viewer';
@@ -435,6 +436,7 @@ function ActivityCard({
435
436
setFlagReason('');
437
} catch (err) {
438
setFlagError(
439
+ err instanceof ConvexError ? (err.data as string) :
440
err instanceof Error ? err.message : 'Failed to report activity'
441
);
442
} finally {
0 commit comments