mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
commit
e3e8de8619
@ -110,23 +110,20 @@ const WalletContainer = ({
|
||||
).toFixed(3),
|
||||
);
|
||||
|
||||
setUnclaimedBalance(
|
||||
`${
|
||||
get(walletData, 'rewardSteemBalance', 0)
|
||||
? `${Math.round(get(walletData, 'rewardSteemBalance', 0) * 1000) / 1000} STEEM`
|
||||
: ''
|
||||
}
|
||||
${
|
||||
get(walletData, 'rewardSbdBalance', 0)
|
||||
? ` ${Math.round(get(walletData, 'rewardSbdBalance', 0) * 1000) / 1000} SBD`
|
||||
: ''
|
||||
}
|
||||
${
|
||||
if (
|
||||
get(walletData, 'rewardSteemBalance', 0) ||
|
||||
get(walletData, 'rewardSbdBalance', 0) ||
|
||||
get(walletData, 'rewardVestingSteem', 0)
|
||||
? ` ${Math.round(get(walletData, 'rewardVestingSteem', 0) * 1000) / 1000} SP`
|
||||
: ''
|
||||
}`,
|
||||
) {
|
||||
const getBalance = (val, cur) => (val ? Math.round(val * 1000) / 1000 + cur : '');
|
||||
|
||||
setUnclaimedBalance(
|
||||
`${getBalance(get(walletData, 'rewardSteemBalance', 0), ' STEEM')} ${getBalance(
|
||||
get(walletData, 'rewardSbdBalance', 0),
|
||||
' SBD',
|
||||
)} ${getBalance(get(walletData, 'rewardVestingSteem', 0), ' SP')}`,
|
||||
);
|
||||
}
|
||||
}, [userActivities, walletData]);
|
||||
|
||||
// Components functions
|
||||
|
Loading…
Reference in New Issue
Block a user