diff --git a/priv/frontend/src/components/Graph.js b/priv/frontend/src/components/Graph.js index c50167b..c8a1c5e 100644 --- a/priv/frontend/src/components/Graph.js +++ b/priv/frontend/src/components/Graph.js @@ -60,6 +60,8 @@ export default class Graph extends Component { tickSize: 0, }; + const minutesAllocated = []; + return (
{ const interval = this.isSmallScreen() ? 7 : 5; const minutesAgo = Math.floor((Date.now() - epoch) / (1000 * 60)); - if (minutesAgo % interval !== 0 || minutesAgo === 0) { - return undefined; + + if (minutesAgo % interval !== 0 || minutesAgo === 0 + || minutesAllocated.includes(minutesAgo)) { + return ''; } + minutesAllocated.push(minutesAgo); return ms(Date.now() - epoch); }, tickSize: 0,