server-tab: Delete space in macOS shortcut text.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-11-22 15:46:27 -08:00
parent f4479dfda4
commit 4c7b9cf4e3

View File

@@ -53,14 +53,11 @@ export default class ServerTab extends Tab {
const shownIndex = this.props.index + 1;
let shortcutText = "";
shortcutText =
SystemUtil.getOS() === "Mac" ? `${shownIndex}` : `Ctrl+${shownIndex}`;
// Array index == Shown index - 1
ipcRenderer.send("switch-server-tab", shownIndex - 1);
return shortcutText;
return SystemUtil.getOS() === "Mac"
? `${shownIndex}`
: `Ctrl+${shownIndex}`;
}
}