Skip to content

Commit

Permalink
fix: assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Nov 14, 2024
1 parent 1582d87 commit 3aacb0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ export const Graph: FC<IGraphProps> = ({ messages, topography }) => {
[messages, speed],
);

const data = useMemo(() => [...sentMessages.values().map((v, index) => ({
const data = useMemo(() => [...sentMessages.values()].map((v, index) => ({
message: index + 1,
time: Number(v.split("#")[1])
}))], [sentMessages.size])
})), [sentMessages.size])

const transactions = useMemo(() => {
const transactionsById: Map<number, ITransactionMessage[]> = new Map();
Expand Down

0 comments on commit 3aacb0d

Please sign in to comment.