From d0aee38df8ab9711bef1e7570cc21ad9d8de15e2 Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Mon, 9 Mar 2026 17:49:11 +0900 Subject: [PATCH] fix: display correct local player count in FavPlayersPage dropdown Update the label for the LOCAL filter option to reference `localList.length` instead of `list.length`, ensuring the item count displayed in the dropdown matches the actual filtered list size. File: src/page/FavPlayersPage.tsx - { label: `${ShowType.LOCAL}(${list.length})`, ... } + { label: `${ShowType.LOCAL}(${localList.length})`, ... } --- src/page/FavPlayersPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page/FavPlayersPage.tsx b/src/page/FavPlayersPage.tsx index 652cc47..1f79bde 100644 --- a/src/page/FavPlayersPage.tsx +++ b/src/page/FavPlayersPage.tsx @@ -76,7 +76,7 @@ export function FavePlayersPage() { value={showType} onChange={e => setShowType(e.target.value)} options={[ - { label: `${ShowType.LOCAL}(${list.length})`, value: ShowType.LOCAL}, + { label: `${ShowType.LOCAL}(${localList.length})`, value: ShowType.LOCAL}, { label: `${ShowType.ACCOUNT}(${favListRequest.data?.length ?? 0})`, value: ShowType.ACCOUNT} ]} />