Skip to content

Commit

Permalink
fix name shown on globe (#383)
Browse files Browse the repository at this point in the history
lgtm
  • Loading branch information
Magnus Alexander Strømseng authored and GitHub committed Apr 29, 2024
1 parent 5eacc84 commit 58cad3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/homeComponents/homeGlobe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ export default function SatelliteGlobe() {
useEffect(() => {
const intervalId = setInterval(() => {
if (globeRef.current) {
const newPositions = Object.entries(satNumToEntry)
.map(([satName, sat]) => {
const newPositions = Object.values(satNumToEntry)
.map((sat) => {
if (sat.satrec) {
return {
lat: parseFloat(
Expand All @@ -152,7 +152,7 @@ export default function SatelliteGlobe() {
convertSatrec(sat.satrec, sat.name)
.altitude,
) / EARTH_RADIUS_KM,
name: satName,
name: sat.name,
satNumber: Number(sat.satrec.satnum),
color:
selectedSatellite ===
Expand Down

0 comments on commit 58cad3a

Please sign in to comment.