From 0e8aedc59b368da0abe35a671a3a1e6eb16a590e Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 9 Sep 2019 16:58:58 +0300 Subject: [PATCH] Fixed sc login issue --- src/providers/steem/auth.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/steem/auth.js b/src/providers/steem/auth.js index e395dbfa5..4b2c5676e 100644 --- a/src/providers/steem/auth.js +++ b/src/providers/steem/auth.js @@ -128,7 +128,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => { postingKey: '', activeKey: '', memoKey: '', - accessToken: scTokens.access_token, + accessToken: '', }; if (isPinCodeOpen) { @@ -177,7 +177,9 @@ export const setUserDataWithPinCode = async data => { get(userData, 'memoKey') || get(userData, 'postingKey'); - data.password = decryptKey(publicKey, data.pinCode); + if (publicKey) { + data.password = decryptKey(publicKey, data.pinCode); + } } const updatedUserData = getUpdatedUserData(userData, data);