Skip to content

Commit 9a54704

Browse files
authored
fix(suite-native): useEmptyPassphrase if no instance (#12477)
1 parent dd8d6f7 commit 9a54704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suite-common/wallet-core/src/device/deviceReducer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const merge = (device: AcquiredDevice, upcoming: Partial<AcquiredDevice>): Trezo
7070

7171
const getShouldUseEmptyPassphrase = (device: Device, deviceInstance?: number): boolean => {
7272
if (!device.features) return false;
73-
if (isNative() && typeof deviceInstance === 'number' && deviceInstance === 1) {
73+
if (isNative() && (!deviceInstance || deviceInstance === 1)) {
7474
// On mobile, if device has instance === 1, we always want to use empty passphrase since we
7575
// connect & authorize standard wallet by default. Other instances will have `usePassphraseProtection` set same way as web/desktop app.
7676
return true;

0 commit comments

Comments
 (0)