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 3aacb0d commit 0e58a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const Graph: FC<IGraphProps> = ({ messages, topography }) => {
return transactionsById;
}, [messages]);

const maxTransactions = useMemo(() => transactions.values().reduce((t, v) => t += v.length, transactions.size), [transactions.size])
const maxTransactions = useMemo(() => [...transactions.values()].reduce((t, v) => t += v.length, transactions.size), [transactions.size])

// Function to draw the scene
const draw = useCallback(() => {
Expand Down

0 comments on commit 0e58a81

Please sign in to comment.