From ee9c6ff0197ee4c7cd1cfe5cc5e4932402e22606 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 31 May 2023 21:17:48 +0530 Subject: Fix to remove the 'undefined' suffix on tooltips beyond the 10th service/workspace --- src/jsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jsUtils.ts') diff --git a/src/jsUtils.ts b/src/jsUtils.ts index ac7258644..f6a1df2fe 100644 --- a/src/jsUtils.ts +++ b/src/jsUtils.ts @@ -29,4 +29,4 @@ export const acceleratorString = ( keyCombo: string, prefix: string = '(', suffix: string = ')', -) => (index <= 10 ? `${prefix}${keyCombo}+${index % 10}${suffix}` : undefined); +) => (index <= 10 ? `${prefix}${keyCombo}+${index % 10}${suffix}` : ''); -- cgit v1.2.3-54-g00ecf