From 53ce91b4424056ec6b9f130f15c55ec11de5ab8c Mon Sep 17 00:00:00 2001 From: juriczech Date: Mon, 20 May 2024 12:34:39 +0200 Subject: [PATCH] fix(suite-native): locked device has correct device instance --- suite-common/wallet-core/src/device/deviceReducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite-common/wallet-core/src/device/deviceReducer.ts b/suite-common/wallet-core/src/device/deviceReducer.ts index 4e3dc8252dac..2fc40d49cf51 100644 --- a/suite-common/wallet-core/src/device/deviceReducer.ts +++ b/suite-common/wallet-core/src/device/deviceReducer.ts @@ -70,7 +70,7 @@ const merge = (device: AcquiredDevice, upcoming: Partial): Trezo const getShouldUseEmptyPassphrase = (device: Device, deviceInstance?: number): boolean => { if (!device.features) return false; - if (isNative() && typeof deviceInstance === 'number' && deviceInstance === 1) { + if (isNative() && (!deviceInstance || deviceInstance === 1)) { // On mobile, if device has instance === 1, we always want to use empty passphrase since we // connect & authorize standard wallet by default. Other instances will have `usePassphraseProtection` set same way as web/desktop app. return true;