diff --git a/libs/core/device-initialization/components/passcode-modal/passcode-modal.component.tsx b/libs/core/device-initialization/components/passcode-modal/passcode-modal.component.tsx index b6a64af321..a711cadaa8 100644 --- a/libs/core/device-initialization/components/passcode-modal/passcode-modal.component.tsx +++ b/libs/core/device-initialization/components/passcode-modal/passcode-modal.component.tsx @@ -11,9 +11,10 @@ import { AppError } from "Core/core/errors" import { ModalDialogProps } from "Core/ui" import { ModalLayers } from "Core/modals-manager/constants/modal-layers.enum" import { useHelpShortcut } from "help/store" +import { UnlockStatus } from "Core/device" export type UnlockDeviceReturnType = Promise< - PayloadAction + PayloadAction > interface Props extends Omit { @@ -79,7 +80,7 @@ const PasscodeModal: FunctionComponent = ({ return } - if (!unlockDeviceStatus.payload) { + if (unlockDeviceStatus.payload !== "UNLOCKED") { setErrorState(ErrorState.BadPasscode) return }