From aa4a332d135d78af3033a495d8a44375072edd82 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Thu, 15 Feb 2024 21:04:16 +0100 Subject: [PATCH] fixed tag issue --- src/Components/Map/hooks/useTags.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Map/hooks/useTags.tsx b/src/Components/Map/hooks/useTags.tsx index e57886a1..93877496 100644 --- a/src/Components/Map/hooks/useTags.tsx +++ b/src/Components/Map/hooks/useTags.tsx @@ -93,7 +93,7 @@ function useTagsManager(initialTags: Tag[]): { const itemTagStrings = text?.match(hashTagRegex); const itemTags: Tag[] = []; itemTagStrings?.map(tag => { - if (tags.find(t => t.name === tag.slice(1))) { + if (tags.find(t => t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase())) { itemTags.push(tags.find(t => t.name.toLocaleLowerCase() === tag.slice(1).toLocaleLowerCase())!) } })