Skip to content

Commit

Permalink
Merge pull request #21 from highvolt-dev/bugfix/kvd_no_5g
Browse files Browse the repository at this point in the history
account for KVD not connected to 5g, fixes #20
  • Loading branch information
highvolt-dev authored Apr 21, 2023
2 parents b0c3fa7 + ddec855 commit 8caa356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function App() {
"RSRQCurrent": secondary.rsrq,
"Downlink_NR_ARFCN": null, // Only available in authenticated telemetry endpoint
"SignalStrengthLevel":0,
"Band": secondary.bands.length ? secondary.bands.join(", ") : null
"Band": secondary?.bands?.length ? secondary.bands.join(", ") : null
};

if (primary['RSRPStrengthIndexCurrent'] === 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Card(props) {
<h2>{props.title}</h2>
{props.main ? (
<>
<h3>Band{props.band.indexOf(",") >= 0 ? 's' : ''} {props.band ? props.band : 'N/A'}</h3>
<h3>Band{props?.band?.indexOf(",") >= 0 ? 's' : ''} {props.band ? props.band : 'N/A'}</h3>
{props.signal === 'lte' && props.CA ? (
<>
<h3>Carrier Aggregation</h3>
Expand Down

0 comments on commit 8caa356

Please sign in to comment.