From 129321b22afd66f64bebbf9f1d4bb4253a3dc3fa Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Fri, 7 May 2021 12:57:35 -0700 Subject: [PATCH] Adjust graph (#91) * Adjust graph * Fix lint --- .../protocol-dashboard/src/store/cache/analytics/hooks.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/protocol-dashboard/src/store/cache/analytics/hooks.ts b/packages/protocol-dashboard/src/store/cache/analytics/hooks.ts index 936e90adf70..ecadc633661 100644 --- a/packages/protocol-dashboard/src/store/cache/analytics/hooks.ts +++ b/packages/protocol-dashboard/src/store/cache/analytics/hooks.ts @@ -192,7 +192,12 @@ export function fetchPlays( nodes: DiscoveryProvider[] ): ThunkAction> { return async dispatch => { - const metric = await fetchTimeSeries('plays', bucket, nodes, true) + let metric = await fetchTimeSeries('plays', bucket, nodes, true) + if (metric !== MetricError.ERROR) { + metric = metric.filter( + m => m.timestamp !== '1620345600' && m.timestamp !== '1620259200' + ) + } dispatch(setPlays({ metric, bucket })) } }