Skip to content

Commit 6015b13

Browse files
authored
fix: initialise the connectedDevice of device store (#2715)
1 parent 78522cf commit 6015b13

File tree

1 file changed

+3
-1
lines changed
  • packages/uhk-web/src/app/store/reducers

1 file changed

+3
-1
lines changed

packages/uhk-web/src/app/store/reducers/device.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
LeftSlotModules,
1313
RightSlotModules,
1414
UdevRulesInfo,
15+
UHK_60_DEVICE,
1516
UHK_DEVICE_IDS,
1617
UHK_DEVICE_IDS_TYPE,
1718
UhkDeviceProduct,
@@ -31,7 +32,7 @@ export interface State {
3132
dongle?: Dongle;
3233
isKeyboardLayoutChanging: boolean;
3334
isPairedWithDongle?: boolean;
34-
connectedDevice?: UhkDeviceProduct;
35+
connectedDevice: UhkDeviceProduct;
3536
hasPermission: boolean;
3637
bootloaderActive: boolean;
3738
deviceConnectionStateLoaded: boolean;
@@ -62,6 +63,7 @@ export const initialState: State = {
6263
isKeyboardLayoutChanging: false,
6364
hasPermission: true,
6465
bootloaderActive: false,
66+
connectedDevice: UHK_60_DEVICE,
6567
deviceConnectionStateLoaded: false,
6668
hostConnectionPairState: {},
6769
isErasingBleSettings: false,

0 commit comments

Comments
 (0)