Browse Source

Rename `blockTime` to `lastSyncDate`

master
meriadec 7 years ago
parent
commit
ca3e5cb55b
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 2
      src/helpers/btc.js
  2. 4
      src/reducers/accounts.js

2
src/helpers/btc.js

@ -210,7 +210,7 @@ export async function getAccount({
balanceByDay: getBalanceByDay(operations),
rootPath,
operations,
blockTime: new Date(),
lastSyncDate: new Date(),
blockHeight,
}

4
src/reducers/accounts.js

@ -105,8 +105,8 @@ export function deserializeAccounts(accounts: Account[]) {
// as account can be passed by main process, the Date types
// can be converted to string. we ensure here that we have real
// date
if (typeof account.blockTime === 'string') {
account.blockTime = new Date(account.blockTime)
if (typeof account.lastSyncDate === 'string') {
account.lastSyncDate = new Date(account.lastSyncDate)
}
return accountModel.encode(account)

Loading…
Cancel
Save