diff --git a/ProjectLighthouse/Pages/SlotsPage.cshtml.cs b/ProjectLighthouse/Pages/SlotsPage.cshtml.cs index 970aeca0..4687223a 100644 --- a/ProjectLighthouse/Pages/SlotsPage.cshtml.cs +++ b/ProjectLighthouse/Pages/SlotsPage.cshtml.cs @@ -32,7 +32,7 @@ public class SlotsPage : BaseLayout { if (string.IsNullOrWhiteSpace(name)) name = ""; - this.SearchValue = name.Replace(" ", string.Empty); + this.SearchValue = name.Trim(); this.SlotCount = await this.Database.Slots.CountAsync(p => p.Name.Contains(this.SearchValue));