Skip to content

Commit

Permalink
fixup! fix(suite): hide wipe warning in case the device is not initia…
Browse files Browse the repository at this point in the history
…lized, refactor
  • Loading branch information
komret committed Jan 3, 2025
1 parent a834556 commit 48e164d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions suite-common/firmware/src/hooks/useFirmwareInstallation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ const determineIfDeviceWillBeWiped = (
) => {
const deviceModelInternal = device?.features?.internal_model;
const deviceIsInitializedOrInBootloader = device?.mode !== 'initialize';
// Changing vendor header always results in device wipe. T1B1 and T2T1 have the same vendor header for bitcoin-only and universal firmware.
const installationWillChangeFirmwareVendorHeader =
!!shouldSwitchFirmwareType &&
deviceModelInternal !== undefined &&
![DeviceModelInternal.T1B1, DeviceModelInternal.T2T1].includes(deviceModelInternal);
// Faulty firmware version.
const firmwareVersionIsGuaranteedToWipeDevice = getFirmwareVersion(device) === '1.6.1';

return (
Expand Down

0 comments on commit 48e164d

Please sign in to comment.