Skip to content

Commit 7b3da48

Browse files
committed
fix(submission): stop polling if failed
1 parent 59892eb commit 7b3da48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/submissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function useProcessInterval({
6767
},
6868
{
6969
onSuccess: (data) => {
70-
if (data.status === 'done') {
70+
if (data.status === 'done' || data.status === 'failed') {
7171
setIsPollingEnabled(false);
7272
onSuccess();
7373
}

0 commit comments

Comments
 (0)