From c4490717c00ddd8b3aeaeed7075e0957aa0e6c1b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 15 Aug 2021 19:42:26 +0200 Subject: [PATCH] lint --- tabby-settings/src/components/editProfileModal.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabby-settings/src/components/editProfileModal.component.ts b/tabby-settings/src/components/editProfileModal.component.ts index 015ed16c..7b1515e3 100644 --- a/tabby-settings/src/components/editProfileModal.component.ts +++ b/tabby-settings/src/components/editProfileModal.component.ts @@ -42,7 +42,11 @@ export class EditProfileModalComponent

{ colorsAutocomplete = text$ => text$.pipe( debounceTime(200), distinctUntilChanged(), - map((q: string) => TAB_COLORS.filter(x => !q || x.toString().startsWith(q)).map(x => x.value)) + map((q: string) => + TAB_COLORS + .filter(x => !q || x.name.toLowerCase().startsWith(q.toLowerCase())) + .map(x => x.value) + ) ) colorsFormatter = value => {