mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
cleanup
This commit is contained in:
parent
1575d8312e
commit
eb2c0fba35
@ -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;
|
||||||
|
@ -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 &&
|
||||||
|
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user