diff --git a/src/app/components/stats.tsx b/src/app/components/stats.tsx index 0a8249b..efdd67e 100644 --- a/src/app/components/stats.tsx +++ b/src/app/components/stats.tsx @@ -51,8 +51,7 @@ const stats: Stat[] = [ export function Stats(): ReactElement { const { lastMessage, readyState } = useWebSocket("wss://api.mcutils.xyz/websocket/metrics"); - const metrics = - lastMessage !== null && readyState == ReadyState.OPEN ? JSON.parse(lastMessage.data).metrics : undefined; + const metrics = lastMessage !== null && readyState == ReadyState.OPEN ? JSON.parse(lastMessage.data) : undefined; return (