From eb2c0fba350e64178b624db5ace75d23e52ba146 Mon Sep 17 00:00:00 2001 From: feruz Date: Wed, 21 Apr 2021 10:08:31 +0300 Subject: [PATCH] cleanup --- src/containers/transferContainer.js | 1 - src/providers/hive/dhive.js | 8 +++++++- src/screens/transfer/screen/delegateScreen.js | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/containers/transferContainer.js b/src/containers/transferContainer.js index a03b4ff25..8b03c938e 100644 --- a/src/containers/transferContainer.js +++ b/src/containers/transferContainer.js @@ -142,7 +142,6 @@ class TransferContainer extends Component { } data.amount = `${data.amount} ${fundType}`; - console.log('transferType', transferType, fundType); switch (transferType) { case 'transfer_token': func = transferToken; diff --git a/src/providers/hive/dhive.js b/src/providers/hive/dhive.js index f2c9efd73..2cde3a7c1 100644 --- a/src/providers/hive/dhive.js +++ b/src/providers/hive/dhive.js @@ -76,6 +76,7 @@ export const fetchGlobalProps = async () => { try { globalDynamic = await getDynamicGlobalProperties(); + await setCache('globalDynamic', globalDynamic); feedHistory = await getFeedHistory(); rewardFund = await getRewardFund(); } catch (e) { @@ -183,7 +184,12 @@ export const getUser = async (user, loggedIn = true) => { return null; } - const globalProperties = getCache('globalDynamic'); + let globalProperties; + try { + globalProperties = await getDynamicGlobalProperties(); + } catch (error) { + globalProperties = getCache('globalDynamic'); + } const rcPower = (user && diff --git a/src/screens/transfer/screen/delegateScreen.js b/src/screens/transfer/screen/delegateScreen.js index 4277cb7e1..2b04542e1 100644 --- a/src/screens/transfer/screen/delegateScreen.js +++ b/src/screens/transfer/screen/delegateScreen.js @@ -143,7 +143,6 @@ class DelegateScreen extends Component { } = this.props; const { amount, isTransfering, from, destination, steemConnectTransfer } = this.state; let availableVestingShares = 0; - console.log(accountType); if (!isEmptyDate(get(selectedAccount, 'next_vesting_withdrawal'))) { // powering down availableVestingShares =