diff --git a/server/classes/sensors.ts b/server/classes/sensors.ts index 48f884158..f355d3484 100644 --- a/server/classes/sensors.ts +++ b/server/classes/sensors.ts @@ -92,7 +92,7 @@ export default class Sensors extends System { this.name = params.name; } this.pings = params.pings ?? true; - this.pingMode = params.pingMode || "manual"; + this.pingMode = params.pingMode || "active"; this.timeSincePing = params.timeSincePing || 0; this.scanResults = params.scanResults || ""; this.scanRequest = params.scanRequest || ""; diff --git a/src/components/views/Status/components/dilithiumStress.js b/src/components/views/Status/components/dilithiumStress.js index 73cfa042f..ce177bf7d 100644 --- a/src/components/views/Status/components/dilithiumStress.js +++ b/src/components/views/Status/components/dilithiumStress.js @@ -42,7 +42,9 @@ class DilithiumStress extends Component { this.props.simulator.stations, ); if (!dilithiumStressCard) return null; - const reactor = this.props.data.reactors && this.props.data.reactors[0]; + const reactor = + this.props.data.reactors && + this.props.data.reactors.find(r => r.model === "reactor"); if (!reactor) return null; const stressLevel = this.calcStressLevel(reactor) / 100; return (