Skip to content

Commit 27b56f9

Browse files
committed
ut fixes
1 parent 4516d78 commit 27b56f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/GlobalAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const loadGlobalAccounts = async (): Promise<void> => {
210210
for (const account of accounts) {
211211
const recalculatedHash = accountSpecificHash(account.data)
212212

213-
if (recalculatedHash !== account.hash) {
213+
if (recalculatedHash && recalculatedHash !== account.hash) {
214214
Logger.mainLogger.warn(
215215
'[DEBUG RESTORE] loadGlobalAccounts() - recalculatedHash !== account.hash',
216216
'accountId:',

test/unit/src/API.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,6 +2380,7 @@ describe('API', () => {
23802380
totalAccounts: 1000,
23812381
totalBalance: '1000000000',
23822382
timestamp: 123456789,
2383+
accounts: [],
23832384
}
23842385

23852386
;(AccountDataProvider.validateGlobalAccountReportRequest as jest.Mock).mockReturnValue({ success: true })
@@ -2394,6 +2395,7 @@ describe('API', () => {
23942395
totalAccounts: 1000,
23952396
totalBalance: '1000000000',
23962397
timestamp: 123456789,
2398+
accounts: [],
23972399
})
23982400
)
23992401
})

0 commit comments

Comments
 (0)