Skip to content

Commit f9b872d

Browse files
authored
Merge pull request #1261 from dxc-technology/jsuarezgonz-progressbar-fix
[Patch] Progressbar is determinated or not depending on if it has val…
2 parents 0def59e + 56dca50 commit f9b872d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/src/progress-bar/ProgressBar.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,10 @@ const DxcProgressBar = ({
4747
>
4848
<LinearProgressBar
4949
backgroundType={backgroundType}
50-
variant={showValue ? "determinate" : "indeterminate"}
50+
variant={value === null || value === undefined ? "indeterminate" : "determinate"}
5151
container="first"
5252
value={valueProgressBar}
5353
></LinearProgressBar>
54-
{!showValue && (
55-
<LinearProgressBar
56-
backgroundType={backgroundType}
57-
variant="indeterminate"
58-
container="second"
59-
value={valueProgressBar}
60-
></LinearProgressBar>
61-
)}
6254
</LinearProgress>
6355
{helperText && (
6456
<HelperText overlay={overlay} backgroundType={backgroundType}>

0 commit comments

Comments
 (0)