Skip to content

Commit

Permalink
Adjust graph (#91)
Browse files Browse the repository at this point in the history
* Adjust graph

* Fix lint
  • Loading branch information
raymondjacobson authored and michellebrier committed Oct 9, 2023
1 parent 369a161 commit 129321b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ export function fetchPlays(
nodes: DiscoveryProvider[]
): ThunkAction<void, AppState, Audius, Action<string>> {
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 }))
}
}
Expand Down

0 comments on commit 129321b

Please sign in to comment.