From d852f24a0a7079e72b2c50966910efd82053ea42 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Thu, 7 Oct 2021 13:52:30 +0300 Subject: [PATCH] fix inverted if condition (cherry picked from commit 8fd18ec1c43c6c976157f18c4d7ad3e73fea7e8a) --- status/statusgo_backend/accounts.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/status/statusgo_backend/accounts.nim b/status/statusgo_backend/accounts.nim index 0bebf5c..659bef8 100644 --- a/status/statusgo_backend/accounts.nim +++ b/status/statusgo_backend/accounts.nim @@ -146,9 +146,9 @@ proc saveAccountAndLogin*( var savedResult = if account.isKeycard: - $status_go.saveAccountAndLogin(accountData, hashedPassword, settingsJSON, configJSON, $subaccountData) - else: $status_go.saveAccountAndLoginWithKeycard(accountData, hashedPassword, settingsJSON, configJSON, $subaccountData, keycardWhisperKey) + else: + $status_go.saveAccountAndLogin(accountData, hashedPassword, settingsJSON, configJSON, $subaccountData) let parsedSavedResult = savedResult.parseJson let error = parsedSavedResult["error"].getStr @@ -243,9 +243,9 @@ proc login*(nodeAccount: NodeAccount, password: string, keycardWhisperKey: strin let account = nodeAccount.toAccount let loginResult = if account.isKeycard: - $status_go.login($toJson(account), hashedPassword) - else: $status_go.loginWithKeycard($toJson(account), hashedPassword, keycardWhisperKey) + else: + $status_go.login($toJson(account), hashedPassword) let error = parseJson(loginResult)["error"].getStr