This pull request includes changes to the WorkItemView class in the src/pages/session/components/workItemView.tsx file. The main changes are focused on improving the calculation of the average estimate and making the code more readable.
Here are the key changes:
src/pages/session/components/workItemView.tsx: Refactored the calculation of valid estimates and their sum into separate variables validEstimates and sum respectively. This change simplifies the calculation and makes the code easier to understand.
src/pages/session/components/workItemView.tsx: Replaced the inline calculation of the average estimate with the average variable. This change enhances the readability of the code and reduces redundancy.
This pull request includes changes to the
WorkItemView
class in thesrc/pages/session/components/workItemView.tsx
file. The main changes are focused on improving the calculation of the average estimate and making the code more readable.Here are the key changes:
src/pages/session/components/workItemView.tsx
: Refactored the calculation of valid estimates and their sum into separate variablesvalidEstimates
andsum
respectively. This change simplifies the calculation and makes the code easier to understand.src/pages/session/components/workItemView.tsx
: Replaced the inline calculation of the average estimate with theaverage
variable. This change enhances the readability of the code and reduces redundancy.