webpack/ForemanTasks/Components/TaskDetails/TaskDetailsSelectors.js in foreman-tasks-0.17.5 vs webpack/ForemanTasks/Components/TaskDetails/TaskDetailsSelectors.js in foreman-tasks-0.17.6
- old
+ new
@@ -28,10 +28,10 @@
return humanized ? humanized.errors : [];
};
export const selectProgress = state =>
selectTaskDetails(state).progress
- ? selectTaskDetails(state).progress.toFixed(4) * 100
+ ? parseFloat((selectTaskDetails(state).progress * 100).toFixed(2))
: 0;
export const selectUsername = state =>
selectTaskDetails(state).username || null;