We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29648b6 commit 42b4f87Copy full SHA for 42b4f87
src/App.tsx
@@ -47,7 +47,7 @@ function App() {
47
// Update minVisitsPercentage when maxMinEdgeCount changes
48
useEffect(() => {
49
if (maxMinEdgeCount > 0) {
50
- const percentage = ((maxMinEdgeCount - 1) / maxEdgeCount) * 100;
+ const percentage = (maxMinEdgeCount / maxEdgeCount) * 100;
51
setMinVisitsPercentage(Math.max(0, Math.min(100, percentage)));
52
}
53
}, [maxMinEdgeCount, maxEdgeCount]);
@@ -256,7 +256,7 @@ function App() {
256
</div>
257
<p className="text-xs text-gray-500">
258
Maximum threshold before any node becomes
259
- disconnected: {maxMinEdgeCount - 1} students
+ disconnected: {maxMinEdgeCount} students
260
</p>
261
262
0 commit comments