mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
Merge pull request #1376 from esteemapp/powerdown-time
powerdown time to hours
This commit is contained in:
commit
ea6cd668ba
@ -116,7 +116,7 @@ const WalletDetailsView = ({ walletData, intl, navigate, isShowDropdowns }) => {
|
||||
text={`${intl.formatMessage({
|
||||
id: 'profile.next_power_text',
|
||||
})} ${walletData.nextVestingWithdrawal} ${intl.formatMessage({
|
||||
id: 'profile.day',
|
||||
id: 'profile.hours',
|
||||
})}`}
|
||||
textColor="#788187"
|
||||
iconName="ios-information-circle-outline"
|
||||
|
@ -219,7 +219,7 @@ export const groomingWalletData = async (user, globalProps, userCurrency) => {
|
||||
|
||||
walletData.showPowerDown = user.next_vesting_withdrawal !== '1969-12-31T23:59:59';
|
||||
const timeDiff = Math.abs(parseDate(user.next_vesting_withdrawal) - new Date());
|
||||
walletData.nextVestingWithdrawal = Math.floor(timeDiff / (1000 * 3600 * 24));
|
||||
walletData.nextVestingWithdrawal = Math.round(timeDiff / (1000 * 3600));
|
||||
|
||||
const { transfer_history: transferHistory } = get(accounts, user.name, []);
|
||||
walletData.transactions = transferHistory
|
||||
|
Loading…
Reference in New Issue
Block a user