Merge pull request #1376 from esteemapp/powerdown-time

powerdown time to hours
This commit is contained in:
Feruz M 2019-12-10 13:17:38 +02:00 committed by GitHub
commit ea6cd668ba
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ const WalletDetailsView = ({ walletData, intl, navigate, isShowDropdowns }) => {
text={`${intl.formatMessage({ text={`${intl.formatMessage({
id: 'profile.next_power_text', id: 'profile.next_power_text',
})} ${walletData.nextVestingWithdrawal} ${intl.formatMessage({ })} ${walletData.nextVestingWithdrawal} ${intl.formatMessage({
id: 'profile.day', id: 'profile.hours',
})}`} })}`}
textColor="#788187" textColor="#788187"
iconName="ios-information-circle-outline" iconName="ios-information-circle-outline"

View File

@ -219,7 +219,7 @@ export const groomingWalletData = async (user, globalProps, userCurrency) => {
walletData.showPowerDown = user.next_vesting_withdrawal !== '1969-12-31T23:59:59'; walletData.showPowerDown = user.next_vesting_withdrawal !== '1969-12-31T23:59:59';
const timeDiff = Math.abs(parseDate(user.next_vesting_withdrawal) - new Date()); 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, []); const { transfer_history: transferHistory } = get(accounts, user.name, []);
walletData.transactions = transferHistory walletData.transactions = transferHistory