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:
AmbrishRamachandiran
2023-07-28 20:11:22 +05:30
parent e8fa09e881
commit 33526cdb9e
+1 -1
View File
@@ -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;
};