From ccbb57f88b637f809d55aca2808dcfa1adb938a6 Mon Sep 17 00:00:00 2001 From: Cheerpipe Date: Tue, 8 Jun 2021 09:51:11 -0400 Subject: [PATCH] Fixes duplicate category bypass exception --- .../Screens/Sidebar/Dialogs/SidebarCategoryCreateViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artemis.UI/Screens/Sidebar/Dialogs/SidebarCategoryCreateViewModel.cs b/src/Artemis.UI/Screens/Sidebar/Dialogs/SidebarCategoryCreateViewModel.cs index 84f646dff..220940164 100644 --- a/src/Artemis.UI/Screens/Sidebar/Dialogs/SidebarCategoryCreateViewModel.cs +++ b/src/Artemis.UI/Screens/Sidebar/Dialogs/SidebarCategoryCreateViewModel.cs @@ -50,7 +50,7 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs private bool BeUniqueCategory(SidebarCategoryCreateViewModel viewModel, string categoryName) { - return _profileCategoryRepository.IsUnique(categoryName, null) == null; + return _profileCategoryRepository.IsUnique(categoryName.Trim(), null) == null; } } } \ No newline at end of file