meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
3 additions and
3 deletions
-
src/helpers/btc.js
-
src/reducers/accounts.js
|
|
@ -210,7 +210,7 @@ export async function getAccount({ |
|
|
|
balanceByDay: getBalanceByDay(operations), |
|
|
|
rootPath, |
|
|
|
operations, |
|
|
|
blockTime: new Date(), |
|
|
|
lastSyncDate: new Date(), |
|
|
|
blockHeight, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -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) |
|
|
|