Fix null check for manufacturer_id in modal

Changed !== null to != null to catch both null and undefined values.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-21 18:11:13 +00:00
parent fe28a91d5c
commit 898410b225

View File

@@ -163,7 +163,7 @@ const BluetoothMode = (function() {
</div>
<div style="background:#141428;padding:14px;border-radius:6px;">
<div style="font-size:10px;color:#666;text-transform:uppercase;margin-bottom:4px;">Manufacturer ID</div>
<div style="font-family:monospace;font-size:13px;color:#e0e0e0;">${device.manufacturer_id !== null ? '0x' + device.manufacturer_id.toString(16).toUpperCase().padStart(4, '0') : '--'}</div>
<div style="font-family:monospace;font-size:13px;color:#e0e0e0;">${device.manufacturer_id != null ? '0x' + device.manufacturer_id.toString(16).toUpperCase().padStart(4, '0') : '--'}</div>
</div>
</div>