Skip to content

Commit

Permalink
fix(submissions): fix infinite polling
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jun 7, 2021
1 parent 994fe14 commit 7d0d431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/submissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function useProcessInterval({
},
{
onSuccess: (data) => {
if (data.status === 'completed') {
if (data.status === 'done') {
setIsPollingEnabled(false);
onSuccess();
}
Expand Down

0 comments on commit 7d0d431

Please sign in to comment.