Skip to content

Commit

Permalink
fix: need to add block accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasRidhuan committed Mar 17, 2022
1 parent 7a652a4 commit cb06565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/src/hooks/User/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cb06565

Please sign in to comment.