From 4dcc70ff9ce3cb69c71c706e7ee875aea0542a3e Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Wed, 5 Oct 2022 19:26:47 +0200 Subject: [PATCH] grouping by letter fix --- src/components/Views/AllAuthors.tsx | 2 +- src/components/Views/AllTopics.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Views/AllAuthors.tsx b/src/components/Views/AllAuthors.tsx index 1aa61b56..3273b7b3 100644 --- a/src/components/Views/AllAuthors.tsx +++ b/src/components/Views/AllAuthors.tsx @@ -35,7 +35,7 @@ export const AllAuthorsView = (props: Props) => { const byLetter = createMemo<{ [letter: string]: Author[] }>(() => { return sortedAuthors().reduce((acc, author) => { - const letter = author.name[0] + const letter = author.name[0].toUpperCase() if (!acc[letter]) { acc[letter] = [] } diff --git a/src/components/Views/AllTopics.tsx b/src/components/Views/AllTopics.tsx index ae26f45d..15b40959 100644 --- a/src/components/Views/AllTopics.tsx +++ b/src/components/Views/AllTopics.tsx @@ -35,7 +35,7 @@ export const AllTopicsView = (props: AllTopicsViewProps) => { const byLetter = createMemo<{ [letter: string]: Topic[] }>(() => { return sortedTopics().reduce((acc, topic) => { - const letter = topic.title[0] + const letter = topic.title[0].toUpperCase() if (!acc[letter]) { acc[letter] = [] }