Skip to content

Commit

Permalink
Fixed miscalculation with device name slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
the-bay-kay committed Feb 22, 2024
1 parent 0a71d52 commit 5fcab70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/bluetooth/BluetoothScanPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const BluetoothScanPage = ({ ...props }: any) => {
<div>
{devices.map((device) => {
if (device) {
const deviceID = device.slice(0, 18);
const deviceName = device.slice(18);
const deviceID = device.slice(0, 21);
const deviceName = device.slice(21);
return <BluetoothCard deviceName={deviceName} deviceData={deviceID} />;
}
return null;
Expand Down

0 comments on commit 5fcab70

Please sign in to comment.