Simplify getDisplayActionName

This commit is contained in:
Michael B. Gale
2026-10-21 16:39:29 +01:00
parent f4cef26f14
commit 7e3c4c783c
2 changed files with 2 additions and 8 deletions

View File

@@ -74,10 +74,7 @@ export const ACTION_DISPLAY_NAMES: Partial<Record<ActionName, string>> = {
export function getDisplayActionName(actionName: ActionName): string {
const displayName = ACTION_DISPLAY_NAMES[actionName];
if (displayName !== undefined) {
return displayName;
}
return actionName;
return displayName ?? actionName;
}
/**