This commit is contained in:
feruz 2021-04-21 10:08:31 +03:00
parent 1575d8312e
commit eb2c0fba35
3 changed files with 7 additions and 3 deletions

View File

@ -142,7 +142,6 @@ class TransferContainer extends Component {
} }
data.amount = `${data.amount} ${fundType}`; data.amount = `${data.amount} ${fundType}`;
console.log('transferType', transferType, fundType);
switch (transferType) { switch (transferType) {
case 'transfer_token': case 'transfer_token':
func = transferToken; func = transferToken;

View File

@ -76,6 +76,7 @@ export const fetchGlobalProps = async () => {
try { try {
globalDynamic = await getDynamicGlobalProperties(); globalDynamic = await getDynamicGlobalProperties();
await setCache('globalDynamic', globalDynamic);
feedHistory = await getFeedHistory(); feedHistory = await getFeedHistory();
rewardFund = await getRewardFund(); rewardFund = await getRewardFund();
} catch (e) { } catch (e) {
@ -183,7 +184,12 @@ export const getUser = async (user, loggedIn = true) => {
return null; return null;
} }
const globalProperties = getCache('globalDynamic'); let globalProperties;
try {
globalProperties = await getDynamicGlobalProperties();
} catch (error) {
globalProperties = getCache('globalDynamic');
}
const rcPower = const rcPower =
(user && (user &&

View File

@ -143,7 +143,6 @@ class DelegateScreen extends Component {
} = this.props; } = this.props;
const { amount, isTransfering, from, destination, steemConnectTransfer } = this.state; const { amount, isTransfering, from, destination, steemConnectTransfer } = this.state;
let availableVestingShares = 0; let availableVestingShares = 0;
console.log(accountType);
if (!isEmptyDate(get(selectedAccount, 'next_vesting_withdrawal'))) { if (!isEmptyDate(get(selectedAccount, 'next_vesting_withdrawal'))) {
// powering down // powering down
availableVestingShares = availableVestingShares =