Skip to content

Commit a7f6270

Browse files
committedOct 1, 2024·
fix(suite): use correct device selector in DeviceStatus
1 parent b3dfce7 commit a7f6270

File tree

1 file changed

+2
-2
lines changed
  • packages/suite/src/components/suite/layouts/SuiteLayout/DeviceSelector

1 file changed

+2
-2
lines changed
 

‎packages/suite/src/components/suite/layouts/SuiteLayout/DeviceSelector/DeviceStatus.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { TrezorDevice } from 'src/types/suite';
77
import { spacingsPx } from '@trezor/theme';
88
import { RotateDeviceImage } from '@trezor/product-components';
99
import { DeviceStatusText } from 'src/views/suite/SwitchDevice/DeviceItem/DeviceStatusText';
10-
import { selectDeviceLabelOrName } from '@suite-common/wallet-core';
10+
import { selectDeviceLabelOrNameById } from '@suite-common/wallet-core';
1111
import { useSelector } from 'src/hooks/suite';
1212

1313
type DeviceStatusProps = {
@@ -45,7 +45,7 @@ export const DeviceStatus = ({
4545
handleRefreshClick,
4646
forceConnectionInfo = false,
4747
}: DeviceStatusProps) => {
48-
const deviceLabel = useSelector(selectDeviceLabelOrName);
48+
const deviceLabel = useSelector(state => selectDeviceLabelOrNameById(state, device?.id));
4949

5050
return (
5151
<Container>

0 commit comments

Comments
 (0)
Please sign in to comment.