fix(gui): show indeterminate spinner when progress is not available
This commit is contained in:
parent
54e07cb1b1
commit
4abd0cb8a3
|
@ -53,7 +53,7 @@ export function LoadingCard(props: LoadingCardProps) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderProgress() {
|
function renderProgress() {
|
||||||
if (ready.status === 'success') {
|
if (getProgress() > 0) {
|
||||||
return <CircularProgress variant='determinate' value={getPercent()} />;
|
return <CircularProgress variant='determinate' value={getPercent()} />;
|
||||||
} else {
|
} else {
|
||||||
return <CircularProgress />;
|
return <CircularProgress />;
|
||||||
|
|
Loading…
Reference in New Issue