mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-27 03:14:56 +03:00
removed console logs
This commit is contained in:
parent
eefdc91d15
commit
b96f80b6d2
@ -57,13 +57,9 @@ class WalletContainer extends Component {
|
||||
|
||||
const global = await globalProps();
|
||||
const feedHistory = await getFeedHistory();
|
||||
console.log('global :', global);
|
||||
console.log('feedHistory :', feedHistory);
|
||||
|
||||
walletData.steemPerMVests = (parseToken(global.total_vesting_fund_steem) / parseToken(global.total_vesting_shares)) * 1e6;
|
||||
|
||||
console.log('steemPerMVests :', walletData.steemPerMVests);
|
||||
|
||||
walletData.estimatedValue = vestsToSp(walletData.vestingShares, walletData.steemPerMVests)
|
||||
* parseToken(feedHistory.current_median_history.base)
|
||||
+ walletData.balance * parseToken(feedHistory.current_median_history.base)
|
||||
@ -72,8 +68,6 @@ class WalletContainer extends Component {
|
||||
walletData.showPowerDown = user.next_vesting_withdrawal !== '1969-12-31T23:59:59';
|
||||
walletData.nextVestingWithdrawal = parseDate(user.next_vesting_withdrawal);
|
||||
|
||||
console.log('walletData :', walletData);
|
||||
|
||||
this.setState({ walletData });
|
||||
}
|
||||
|
||||
|
@ -41,24 +41,32 @@ class WalletView extends Component {
|
||||
defaultTitle="Unclaimed rewards"
|
||||
expanded
|
||||
>
|
||||
<MainButton style={styles.mainButton} height={50} onPress={this._handleOnPressLogin}>
|
||||
<View style={styles.mainButtonWrapper}>
|
||||
<Text style={styles.mainButtonText}>
|
||||
{walletData.rewardSteemBalance
|
||||
? `${Math.round(walletData.rewardSteemBalance * 1000) / 1000} STEEM`
|
||||
: ''}
|
||||
{walletData.rewardSbdBalance
|
||||
? ` ${Math.round(walletData.rewardSbdBalance * 1000) / 1000} SDB`
|
||||
: ''}
|
||||
{walletData.rewardVestingSteem
|
||||
? ` ${Math.round(walletData.rewardVestingSteem * 1000) / 1000} SP`
|
||||
: ''}
|
||||
</Text>
|
||||
<View style={styles.mainIconWrapper}>
|
||||
<Ionicons name="md-add" color="#357ce6" size={23} />
|
||||
</View>
|
||||
</View>
|
||||
</MainButton>
|
||||
{walletData.rewardSteemBalance > 0
|
||||
&& walletData.rewardSbdBalance > 0
|
||||
&& walletData.rewardVestingSteem > 0 && (
|
||||
<MainButton
|
||||
style={styles.mainButton}
|
||||
height={50}
|
||||
onPress={this._handleOnPressLogin}
|
||||
>
|
||||
<View style={styles.mainButtonWrapper}>
|
||||
<Text style={styles.mainButtonText}>
|
||||
{walletData.rewardSteemBalance
|
||||
? `${Math.round(walletData.rewardSteemBalance * 1000) / 1000} STEEM`
|
||||
: ''}
|
||||
{walletData.rewardSbdBalance
|
||||
? ` ${Math.round(walletData.rewardSbdBalance * 1000) / 1000} SDB`
|
||||
: ''}
|
||||
{walletData.rewardVestingSteem
|
||||
? ` ${Math.round(walletData.rewardVestingSteem * 1000) / 1000} SP`
|
||||
: ''}
|
||||
</Text>
|
||||
<View style={styles.mainIconWrapper}>
|
||||
<Ionicons name="md-add" color="#357ce6" size={23} />
|
||||
</View>
|
||||
</View>
|
||||
</MainButton>
|
||||
)}
|
||||
</CollapsibleCard>
|
||||
|
||||
<CollapsibleCard titleColor="#788187" title="Wallet Details" expanded>
|
||||
|
Loading…
Reference in New Issue
Block a user