From cb0656523ea3fd0a7ee74d628dd74507493e111d Mon Sep 17 00:00:00 2001 From: Ilyas Ridhuan Date: Thu, 17 Mar 2022 15:32:31 +0000 Subject: [PATCH] fix: need to add block accessor --- wallet/src/hooks/User/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/src/hooks/User/index.jsx b/wallet/src/hooks/User/index.jsx index 75902933d..310c311e7 100644 --- a/wallet/src/hooks/User/index.jsx +++ b/wallet/src/hooks/User/index.jsx @@ -77,7 +77,7 @@ export const UserProvider = ({ children }) => { const parsed = JSON.parse(event.data); if (parsed.type === 'sync') { parsed.historicalData - .sort((a, b) => a.blockNumberL2 - b.blockNumberL2) + .sort((a, b) => a.block.blockNumberL2 - b.block.blockNumberL2) .reduce(async (acc, curr) => { console.log('State', state.zkpKeys.ivk); await acc; // Acc is a promise so we await it before processing the next one;