removed console logs

This commit is contained in:
mistikk 2018-11-10 15:53:08 +01:00
parent eefdc91d15
commit b96f80b6d2
2 changed files with 26 additions and 24 deletions

View File

@ -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 });
}

View File

@ -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>