Skip to content

Commit

Permalink
fix(suite-native): locked device has correct device instance
Browse files Browse the repository at this point in the history
  • Loading branch information
juriczech committed May 20, 2024
1 parent 3e14473 commit 233a408
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions suite-common/wallet-core/src/device/deviceReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ const connectDevice = (draft: State, device: Device) => {
// fill draft with not affected devices
otherDevices.forEach(d => draft.devices.push(d));

const deviceInstance = features.passphrase_protection
? deviceUtils.getNewInstanceNumber(draft.devices, device) || 1
: undefined;
const deviceInstance = deviceUtils.getNewInstanceNumber(draft.devices, device) || 1;


const newDevice: TrezorDevice = {
...device,
Expand Down

0 comments on commit 233a408

Please sign in to comment.