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), balanceByDay: getBalanceByDay(operations),
rootPath, rootPath,
operations, operations,
blockTime: new Date(), lastSyncDate: new Date(),
blockHeight, 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 // as account can be passed by main process, the Date types
// can be converted to string. we ensure here that we have real // can be converted to string. we ensure here that we have real
// date // date
if (typeof account.blockTime === 'string') { if (typeof account.lastSyncDate === 'string') {
account.blockTime = new Date(account.blockTime) account.lastSyncDate = new Date(account.lastSyncDate)
} }
return accountModel.encode(account) return accountModel.encode(account)

Loading…
Cancel
Save