Skip to content

Commit 21d3e94

Browse files
author
Guillaume Chau
committed
fix(ui): display 0 instead of NaN
1 parent 60b86eb commit 21d3e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-ui-addon-build/src/components/BuildProgress.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/>
99

1010
<div class="progress">
11-
{{ Math.round(progress * 100) }}
11+
{{ typeof progress === 'number' ? Math.round(progress * 100) : 0 }}
1212
</div>
1313

1414
<div class="operations">

0 commit comments

Comments
 (0)