Skip to content

Commit

Permalink
Update react/components/ProgressBar/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Ribeiro <703858+malvadeza@users.noreply.github.com>
  • Loading branch information
arthurepc and malvadeza authored Mar 17, 2021
1 parent b5c907c commit 6f51798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react/components/ProgressBar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function generateProgressBarStates(
export function getCurrentProgressBarState(status: string, packages: any) {
const currentProgressIndex = getOrderProgress(status, packages)

return generateProgressBarStates(progressBarStates, currentProgressIndex, packages)[currentProgressIndex]?.label
const progressBarStates = generateProgressBarStates(progressBarStates, currentProgressIndex, packages)

return progressBarStates[currentProgressIndex]?.label
}

export function isDelivered(packages: any) {
Expand Down

0 comments on commit 6f51798

Please sign in to comment.