diff --git a/console/bridge.go b/console/bridge.go
index 93655c24d3018ba50f4dc681c8d801bacd34d883..1a297ee12329d42f170a8893eb8a07d9e404ac5a 100644
--- a/console/bridge.go
+++ b/console/bridge.go
@@ -229,7 +229,7 @@ func (b *bridge) readPinAndReopenWallet(call jsre.Call) (goja.Value, error) {
 // original RPC method (saved in jeth.unlockAccount) with it to actually execute
 // the RPC call.
 func (b *bridge) UnlockAccount(call jsre.Call) (goja.Value, error) {
-	if nArgs := len(call.Arguments); nArgs < 2 {
+	if len(call.Arguments) < 1 {
 		return nil, fmt.Errorf("usage: unlockAccount(account, [ password, duration ])")
 	}
 	// Make sure we have an account specified to unlock.