Skip to content

Commit 639590f

Browse files
fix: [DI-26688] - Fixed incorrect unit display in metric widget (#12647)
* fix: [DI-26688] - Fixed incorrect unit display in metric widget * Added changeset
1 parent 787acaf commit 639590f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
ACLP: not display `/s` with *PS units on initial widget loading ([#12647](https://github.com/linode/manager/pull/12647))

packages/manager/src/features/CloudPulse/Widget/CloudPulseWidget.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ export const CloudPulseWidget = (props: CloudPulseWidgetProperties) => {
307307
<Typography flex={{ sm: 2, xs: 0 }} marginLeft={1} variant="h2">
308308
{convertStringToCamelCasesWithSpaces(widget.label)} (
309309
{scaledWidgetUnit.current}
310-
{unit.endsWith('ps') ? '/s' : ''})
310+
{unit.endsWith('ps') && !scaledWidgetUnit.current.endsWith('ps')
311+
? '/s'
312+
: ''}
313+
)
311314
</Typography>
312315
<Stack
313316
direction={{ sm: 'row' }}

0 commit comments

Comments
 (0)