chore(trading): remove unnecessary sentry capture from asyncrenderer component (#2869)
This commit is contained in:
parent
c7a6fdd879
commit
8dccee69f2
@ -1,7 +1,6 @@
|
|||||||
import { Splash } from '../splash';
|
import { Splash } from '../splash';
|
||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
import { t } from '@vegaprotocol/react-helpers';
|
import { t } from '@vegaprotocol/react-helpers';
|
||||||
import * as Sentry from '@sentry/react';
|
|
||||||
|
|
||||||
interface AsyncRendererProps<T> {
|
interface AsyncRendererProps<T> {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
@ -27,7 +26,6 @@ export function AsyncRenderer<T = object>({
|
|||||||
render,
|
render,
|
||||||
}: AsyncRendererProps<T>) {
|
}: AsyncRendererProps<T>) {
|
||||||
if (error) {
|
if (error) {
|
||||||
Sentry.captureException(`Error rendering data: ${error.message}`);
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return (
|
return (
|
||||||
<Splash>
|
<Splash>
|
||||||
|
Loading…
Reference in New Issue
Block a user