mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-19 19:52:42 +00:00
# Pull Request Template ## Description Changed to make use of nullish coalescing operator to only short circuit in cases when the `metric` variable is not zero. This change also begs the question as to whether the `stringToFloat` test function should exist - to me it seems interesting to have test code embedded into production code for the frontend? Fixes #10640 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality not to work as expected) - [ ] This change requires a documentation update ## How Has This Been Tested? Tested by opening the report overview page and reviewing that this shows `---` for agents with no conversations assigned to them. ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>