Skip to content

Real-time dashboard for monitoring global news, markets, and geopolitical events

TypeScript

Fix earthquake data property name (magnitude -> mag)

Reggiedc9be61c5e2f
diff --git a/js/data.js b/js/data.js
index 052c65d..c950f07 100644
--- a/js/data.js
+++ b/js/data.js
@@ -445,7 +445,7 @@ export async function fetchEarthquakes() {
return data.features.map(f => ({
id: f.id,
- magnitude: f.properties.mag,
+ mag: f.properties.mag,
place: f.properties.place,
time: new Date(f.properties.time),
lat: f.geometry.coordinates[1],