Skip to content

Commit

Permalink
fix(suite-native): supported onboarding device type check
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
PeKne and coderabbitai[bot] authored Feb 3, 2025
1 parent c2a76de commit f79e01f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const trezorModelImageMap = {

const UninitializedDeviceLandingScreenContent = () => {
const { applyStyle } = useNativeStyles();
const deviceModel = useSelector(selectDeviceModel) as SetupSupportingDeviceModel;
const deviceModel = useSelector(selectDeviceModel);
if (!isDeviceSetupSupported(deviceModel)) return null;
const hasDeviceFirmwareInstalled = useSelector(selectHasDeviceFirmwareInstalled);

Check failure on line 34 in suite-native/module-onboarding/src/screens/UninitializedDeviceLandingScreen.tsx

View workflow job for this annotation

GitHub Actions / Linting and formatting

React Hook "useSelector" is called conditionally. React Hooks must be called in the exact same order in every component render

if (!deviceModel) {
Expand Down

0 comments on commit f79e01f

Please sign in to comment.