fix: don't propagate errors on user page to root

This commit is contained in:
Aarnav Tale 2025-01-18 07:41:08 +00:00
parent d524f927a4
commit e6a66d5804
No known key found for this signature in database

View File

@ -13,6 +13,7 @@ import { ClientOnly } from 'remix-utils/client-only';
import Attribute from '~/components/Attribute';
import Card from '~/components/Card';
import StatusCircle from '~/components/StatusCircle';
import { ErrorPopup } from '~/components/Error';
import { toast } from '~/components/Toaster';
import type { Machine, User } from '~/types';
import { cn } from '~/utils/cn';
@ -319,3 +320,9 @@ function UserCard({ user, magic }: CardProps) {
</div>
);
}
export function ErrorBoundary() {
return (
<ErrorPopup type="embedded" />
)
}