Skip to content

Commit bed51b5

Browse files
committed
Don't flash progress indicators when it is a failed request.
1 parent d6bf2e0 commit bed51b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/scripts/state/progress.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ const progress: ProgressStore = {
2222
}),
2323

2424
setComplete: action(state => {
25-
state.progress = 100;
25+
if (state.progress) {
26+
state.progress = 100;
27+
}
28+
2629
state.continuous = false;
2730
}),
2831
};

0 commit comments

Comments
 (0)