Skip to content

Commit

Permalink
fix: supply correct keystore identity to worker constructor in hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Mirandola committed Feb 28, 2023
1 parent 99878a5 commit e841fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/useDCPWorker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/useDCPWorker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ const useDCPWorker = ({
let dcpWorker: any;
try {
delete workerOptions.shouldStopWorkingImmediately;
dcpWorker = new window.dcp.worker.Worker(identity, workerOptions);
dcpWorker = new window.dcp.worker.Worker(workerId, workerOptions);
dispatchWorkerState({ type: 'WORKER_LOADED_TRUE' });
setWorkerOptionsState(workerOptions);
} catch (error) {
Expand Down

0 comments on commit e841fad

Please sign in to comment.