File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export const loadGlobalAccounts = async (): Promise<void> => {
210
210
for ( const account of accounts ) {
211
211
const recalculatedHash = accountSpecificHash ( account . data )
212
212
213
- if ( recalculatedHash !== account . hash ) {
213
+ if ( recalculatedHash && recalculatedHash !== account . hash ) {
214
214
Logger . mainLogger . warn (
215
215
'[DEBUG RESTORE] loadGlobalAccounts() - recalculatedHash !== account.hash' ,
216
216
'accountId:' ,
Original file line number Diff line number Diff line change @@ -2380,6 +2380,7 @@ describe('API', () => {
2380
2380
totalAccounts : 1000 ,
2381
2381
totalBalance : '1000000000' ,
2382
2382
timestamp : 123456789 ,
2383
+ accounts : [ ] ,
2383
2384
}
2384
2385
2385
2386
; ( AccountDataProvider . validateGlobalAccountReportRequest as jest . Mock ) . mockReturnValue ( { success : true } )
@@ -2394,6 +2395,7 @@ describe('API', () => {
2394
2395
totalAccounts : 1000 ,
2395
2396
totalBalance : '1000000000' ,
2396
2397
timestamp : 123456789 ,
2398
+ accounts : [ ] ,
2397
2399
} )
2398
2400
)
2399
2401
} )
You can’t perform that action at this time.
0 commit comments