Skip to content

Commit

Permalink
23.12.48: wt-progress-bar error color usage fix [WTEL-3950]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Nov 28, 2023
1 parent d32f404 commit dc250e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "23.12.47",
"version": "23.12.48",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('useRepresentableAgentPauseCause', () => {
const {
representablePauseCause,
} = useRepresentableAgentPauseCause(pauseCauses);
expect(representablePauseCause.value[0].progressColor).toBe('danger');
expect(representablePauseCause.value[0].progressColor).toBe('error');
});

it('correctly computes progressColor with duration < limit', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const duration = ({ durationMin, limitMin }) => {
};

const pauseCauseProgressColor = ({ durationMin, limitMin }) => {
if (isDurationOverflow({ durationMin, limitMin })) return 'danger';
if (isDurationOverflow({ durationMin, limitMin })) return 'error';
if (durationMin <= (limitMin * 0.75)) return 'success';
return 'primary';
};
Expand Down

0 comments on commit dc250e1

Please sign in to comment.