Skip to content

Commit 8caa356

Browse files
authored
Merge pull request #21 from highvolt-dev/bugfix/kvd_no_5g
account for KVD not connected to 5g, fixes #20
2 parents b0c3fa7 + ddec855 commit 8caa356

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function App() {
115115
"RSRQCurrent": secondary.rsrq,
116116
"Downlink_NR_ARFCN": null, // Only available in authenticated telemetry endpoint
117117
"SignalStrengthLevel":0,
118-
"Band": secondary.bands.length ? secondary.bands.join(", ") : null
118+
"Band": secondary?.bands?.length ? secondary.bands.join(", ") : null
119119
};
120120

121121
if (primary['RSRPStrengthIndexCurrent'] === 0) {

src/components/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Card(props) {
77
<h2>{props.title}</h2>
88
{props.main ? (
99
<>
10-
<h3>Band{props.band.indexOf(",") >= 0 ? 's' : ''} {props.band ? props.band : 'N/A'}</h3>
10+
<h3>Band{props?.band?.indexOf(",") >= 0 ? 's' : ''} {props.band ? props.band : 'N/A'}</h3>
1111
{props.signal === 'lte' && props.CA ? (
1212
<>
1313
<h3>Carrier Aggregation</h3>

0 commit comments

Comments
 (0)