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:
jeffvli 2023-07-15 10:45:09 -07:00
parent f74e02eb09
commit 34f05fa2a5

View file

@ -23,7 +23,7 @@ export const ErrorFallback = ({ resetErrorBoundary }: FallbackProps) => {
/>
<Text size="lg">Something went wrong</Text>
</Group>
<Text>{error.message}</Text>
<Text>{error?.message}</Text>
<Button
variant="filled"
onClick={resetErrorBoundary}