mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add undefined check to error message
- In some cases you can get an irrecoverable UI due to this being undefined
This commit is contained in:
@@ -23,7 +23,7 @@ export const ErrorFallback = ({ resetErrorBoundary }: FallbackProps) => {
|
|||||||
/>
|
/>
|
||||||
<Text size="lg">Something went wrong</Text>
|
<Text size="lg">Something went wrong</Text>
|
||||||
</Group>
|
</Group>
|
||||||
<Text>{error.message}</Text>
|
<Text>{error?.message}</Text>
|
||||||
<Button
|
<Button
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onClick={resetErrorBoundary}
|
onClick={resetErrorBoundary}
|
||||||
|
|||||||
Reference in New Issue
Block a user