unify peripheral state struct.

This commit is contained in:
Vixalie
2025-02-28 13:50:53 +08:00
parent c6043b612f
commit 26165f5d5c
3 changed files with 10 additions and 31 deletions

View File

@@ -9,8 +9,8 @@ const DeviceStates: FC = () => {
return (
<>
<IconRssi height={16} level={deviceState.rssi} />
<IconBattery height={16} level={deviceState.battery} />
<IconRssi height={16} level={deviceState?.rssi} />
<IconBattery height={16} level={deviceState?.battery} />
</>
);
};