fix: dashboard graph dataplots going off grid

fix: inconsistencies between eligible transactions on graphs
This commit is contained in:
Sérgio Salgado 2022-06-01 17:29:29 +01:00
parent d5ddf5f74f
commit 10ac63cc6c
3 changed files with 35 additions and 28 deletions

View file

@ -24,7 +24,7 @@ const Graph = ({ data, timeFrame, timezone }) => {
top: 20,
right: 0.5,
bottom: 27,
left: 43.5
left: 33.5
}),
[]
)
@ -63,7 +63,7 @@ const Graph = ({ data, timeFrame, timezone }) => {
)
const filterDay = useCallback(
x => (timeFrame === 'day' ? x.getUTCHours() === 0 : x.getUTCDate() === 1),
x => (timeFrame === 'Day' ? x.getUTCHours() === 0 : x.getUTCDate() === 1),
[timeFrame]
)