In the employer client status sidebar, the number of 'Submitted' claims was sometimes incorrect.
This was because in the employer client, multiple internal statuses ('New', 'In Progress', and 'Completed') correspond to the 'Submitted' label in the sidebar. The previous code didn't handle this correctly.
This pull request addresses this issue by using two mappings to manage the status sidebar state:
{ status: label }
{ label: count }
Then we can obtain counts both by label and internal status value as required, ie:
In the employer client status sidebar, the number of 'Submitted' claims was sometimes incorrect.
This was because in the employer client, multiple internal statuses ('New', 'In Progress', and 'Completed') correspond to the 'Submitted' label in the sidebar. The previous code didn't handle this correctly.
This pull request addresses this issue by using two mappings to manage the status sidebar state:
{ status: label } { label: count }
Then we can obtain counts both by label and internal status value as required, ie:
counts[labels[status]]
or
counts[label]