Skip to content

Commit ecd5168

Browse files
committed
fixup! Build out frontend
1 parent dd32287 commit ecd5168

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

site/src/components/WorkspaceBuildProgress/WorkspaceBuildProgress.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ const estimateFinish = (
5050
const lowGuess = secondsLeft(median)
5151
const highGuess = secondsLeft(median + stddev)
5252

53-
// If variation is too high (and greater than second), don't show
54-
// progress bar and give range.
55-
const highVariation = stddev / median > 0.1 && highGuess - lowGuess > 1
56-
5753
const anyMomentNow: [number | undefined, string] = [
5854
undefined,
5955
"Any moment now...",
6056
]
6157

58+
// If variation is too high (and greater than second), don't show
59+
// progress bar and give range.
60+
const highVariation = stddev / median > 0.1 && highGuess - lowGuess > 1
6261
if (highVariation) {
6362
if (highGuess <= 0) {
6463
return anyMomentNow

0 commit comments

Comments
 (0)