Skip to content

Commit

Permalink
Rename sliceFinish to sliceEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
Severn Lortie committed May 16, 2023
1 parent 3420986 commit caea8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useDCPWorker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,10 @@ const useDCPWorker = ({
};

sandbox.on('start', onStart);
sandbox.on('sliceFinish', onFinish);
sandbox.on('sliceEnd', onFinish);
sandbox.on('terminate', () => {
sandbox.off('start', onStart);
sandbox.off('sliceFinish', onFinish);
sandbox.off('sliceEnd', onFinish);
});
});
dcpWorker.on('submit', () => {
Expand Down

0 comments on commit caea8f3

Please sign in to comment.