From b0e673e3b062f466e53c407130056062186fe64f Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Mon, 19 Apr 2021 21:00:51 +0300 Subject: [PATCH] cleanup Signed-off-by: Jari Kolehmainen --- src/renderer/components/hotbar/hotbar-add-command.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/hotbar/hotbar-add-command.tsx b/src/renderer/components/hotbar/hotbar-add-command.tsx index 47b8d7685e..6922473ae8 100644 --- a/src/renderer/components/hotbar/hotbar-add-command.tsx +++ b/src/renderer/components/hotbar/hotbar-add-command.tsx @@ -4,7 +4,7 @@ import { hotbarStore } from "../../../common/hotbar-store"; import { CommandOverlay } from "../command-palette"; import { Input, InputValidator } from "../input"; -const uniqueWorkspaceName: InputValidator = { +const uniqueHotbarName: InputValidator = { condition: ({ required }) => required, message: () => `Hotbar with this name already exists`, validate: value => !hotbarStore.getByName(value), @@ -35,7 +35,7 @@ export class HotbarAddCommand extends React.Component { autoFocus={true} theme="round-black" data-test-id="command-palette-hotbar-add-name" - validators={[uniqueWorkspaceName]} + validators={[uniqueHotbarName]} onSubmit={(v) => this.onSubmit(v)} dirty={true} showValidationLine={true} />