chore(trading): remove unnecessary sentry capture from asyncrenderer component (#2869)

This commit is contained in:
Matthew Russell 2023-02-06 15:21:39 -08:00 committed by GitHub
parent c7a6fdd879
commit 8dccee69f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
import { Splash } from '../splash';
import type { ReactNode } from 'react';
import { t } from '@vegaprotocol/react-helpers';
import * as Sentry from '@sentry/react';
interface AsyncRendererProps<T> {
loading: boolean;
@ -27,7 +26,6 @@ export function AsyncRenderer<T = object>({
render,
}: AsyncRendererProps<T>) {
if (error) {
Sentry.captureException(`Error rendering data: ${error.message}`);
if (!data) {
return (
<Splash>