Skip to content

Commit

Permalink
fix: website interactive host map bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Aug 14, 2023
1 parent d0ebd8a commit 4cf74a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 92 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-rings-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'website': minor
---

Fixed a bug where the route arcs would error and stop showing on the interactive host map.
4 changes: 2 additions & 2 deletions apps/website/components/HostMap/Globe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function GlobeComponent({ activeHost, hosts, rates, selectActiveHost }: Props) {
const addExtra = Math.random() < 0.1
if (addExtra) {
const randomDistantIndex = random(
// Math.round((hosts.length - 1) / 2),
// Math.round((hostRoutes.length - 1) / 2),
0,
hosts.length - 1
hostRoutes.length - 1
)
const extra = hostRoutes[randomDistantIndex]
routes.push(extra)
Expand Down
90 changes: 0 additions & 90 deletions apps/website/components/HostMap/GlobeOld.tsx

This file was deleted.

0 comments on commit 4cf74a1

Please sign in to comment.