Skip to content

Commit

Permalink
fix: using appendLockHashInfos
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Aug 20, 2019
1 parent 25ed522 commit 342061d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/neuron-wallet/src/services/indexer/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export default class IndexerQueue {
this.indexed = false
}

public appendLockHashInfos = (lockHashInfos: LockHashInfo[]): void => {
const infos = this.lockHashInfos.concat(lockHashInfos)
this.setLockHashInfos(infos)
}

public reset = () => {
this.resetFlag = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const switchNetwork = async (nodeURL: string) => {
})
})
)).reduce((acc, val) => acc.concat(val), [])
indexerQueue.setLockHashInfos(infos)
indexerQueue.appendLockHashInfos(infos)
}
})

Expand Down

0 comments on commit 342061d

Please sign in to comment.