From 09afacd51c2521281a599d309c3afa663fd1a475 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 16 Mar 2023 08:29:36 +0100 Subject: [PATCH] qml: fix logical error with PIN code timeout. --- electrum/gui/qml/components/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 9505a8914..ae5b59150 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -513,7 +513,7 @@ ApplicationWindow // no PIN configured qtobject.authProceed() } else { - if (Date.now() - _lastCorrectPinTime > _pinValidSeconds * 1000) { + if (Date.now() - _lastCorrectPinTime <= _pinValidSeconds * 1000) { // correct pin entered recently, accept. qtobject.authProceed() return