Skip to content

Commit 226fc91

Browse files
authored
fix(suite-native): Show FW update banner only if the Trezor is connected (#17556)
* fix(suite-native): Show FW update banner only if the Trezor is connected * feat(suite-native): do not offer FW update for device without backup
1 parent 46a8e66 commit 226fc91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

suite-native/module-home/src/screens/HomeScreen/components/FirmwareUpdateAlert.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
selectDeviceReleaseInfo,
1313
selectDeviceState,
1414
selectDeviceUpdateFirmwareVersion,
15-
selectIsDeviceConnectedAndAuthorized,
15+
selectIsDeviceBackedUp,
16+
selectIsDeviceConnected,
1617
selectIsDiscoveryActiveByDeviceState,
1718
selectIsPortfolioTrackerDevice,
1819
} from '@suite-common/wallet-core';
@@ -56,7 +57,8 @@ export const FirmwareUpdateAlert = () => {
5657
const deviceReleaseInfo = useSelector(selectDeviceReleaseInfo);
5758
const isPortfolioTrackerDevice = useSelector(selectIsPortfolioTrackerDevice);
5859
const deviceId = useSelector(selectDeviceId);
59-
const isConnected = useSelector(selectIsDeviceConnectedAndAuthorized);
60+
const isConnected = useSelector(selectIsDeviceConnected);
61+
const isDeviceBackedUp = useSelector(selectIsDeviceBackedUp);
6062
const deviceState = useSelector(selectDeviceState);
6163
const isDiscoveryRunning = useSelector((state: DiscoveryRootState & DeviceRootState) =>
6264
selectIsDiscoveryActiveByDeviceState(state, deviceState),
@@ -101,6 +103,7 @@ export const FirmwareUpdateAlert = () => {
101103
isPortfolioTrackerDevice ||
102104
isDiscoveryRunning ||
103105
!isConnected ||
106+
!isDeviceBackedUp ||
104107
isClosed
105108
) {
106109
return null;

0 commit comments

Comments
 (0)