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