Limit the use of the same shortcut name when adding a shortcut- error message changed
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -69,7 +69,7 @@ export const ShortcutForm = ({
|
||||
|
||||
const titleIsUnique = async (title: string) => {
|
||||
if (shortcutData.some(shortcutTitle => shortcutTitle.title === title))
|
||||
return 'This title name is already exist';
|
||||
return 'A shortcut with this title already exists';
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user