diff --git a/libs/ledger-live-common/src/hw/extractOnboardingState.ts b/libs/ledger-live-common/src/hw/extractOnboardingState.ts index c61910b2ab0b..d9ffc6fc06a2 100644 --- a/libs/ledger-live-common/src/hw/extractOnboardingState.ts +++ b/libs/ledger-live-common/src/hw/extractOnboardingState.ts @@ -60,8 +60,8 @@ export const extractOnboardingState = (flagsBytes: Buffer): OnboardingState => { ); } - const isOnboarded = !!(flagsBytes[0] & onboardedMask); - const isInRecoveryMode = !!(flagsBytes[0] & inRecoveryModeMask); + const isOnboarded = Boolean(flagsBytes[0] & onboardedMask); + const isInRecoveryMode = Boolean(flagsBytes[0] & inRecoveryModeMask); const seedPhraseTypeBits = (flagsBytes[2] & seedPhraseTypeMask) >> seedPhraseTypeFlagOffset;