.
This commit is contained in:
1 parent
4475a2d86b
commit
a076bca587
10 files changed
+2726
-62
No files matched your search
@@ -550,7 +550,9 @@ export default function UserHistoryPage() {
|
||||
profile?.tiers[0];
|
||||
const internalPages = internalHistoryQuery.data?.pages ?? [];
|
||||
const internalFirstPage = internalPages[0];
|
||||
const summary = isInternalQueue ? internalFirstPage?.summary : summaryQuery.data;
|
||||
const summary = isInternalQueue
|
||||
? internalFirstPage?.summary
|
||||
: summaryQuery.data;
|
||||
const matches = isInternalQueue
|
||||
? internalPages.flatMap((page) => page.matches)
|
||||
: (recentMatchesQuery.data?.pages.flatMap((page) => page.matches) ?? []);
|
||||
@@ -643,7 +645,11 @@ export default function UserHistoryPage() {
|
||||
queryKey: ["user-recent-matches", DEFAULT_COMMUNITY_ID, userId ?? null],
|
||||
}),
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["user-internal-history", DEFAULT_COMMUNITY_ID, userId ?? null],
|
||||
queryKey: [
|
||||
"user-internal-history",
|
||||
DEFAULT_COMMUNITY_ID,
|
||||
userId ?? null,
|
||||
],
|
||||
}),
|
||||
]);
|
||||
}
|
||||
@@ -652,11 +658,13 @@ export default function UserHistoryPage() {
|
||||
if (!userId) return;
|
||||
if (isInternalQueue) {
|
||||
setRefreshResult(null);
|
||||
setRefreshNotice(
|
||||
"내전 기록은 토너먼트 결과 수집 데이터를 다시 조회합니다. Riot API 갱신 큐는 사용하지 않습니다.",
|
||||
);
|
||||
setRefreshNotice("과거의 토너먼트 결과 수집 데이터를 다시 조회합니다.");
|
||||
void queryClient.invalidateQueries({
|
||||
queryKey: ["user-internal-history", DEFAULT_COMMUNITY_ID, userId ?? null],
|
||||
queryKey: [
|
||||
"user-internal-history",
|
||||
DEFAULT_COMMUNITY_ID,
|
||||
userId ?? null,
|
||||
],
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -757,7 +765,8 @@ export default function UserHistoryPage() {
|
||||
{isInternalQueue ? (
|
||||
<>
|
||||
{/* 내전 탭은 토너먼트 결과 DB를 조회합니다. */}
|
||||
Riot API 갱신 없이 수집된 내전 결과를 다시 불러옵니다.
|
||||
{/* Riot API 갱신 없이 수집된 내전 결과를 다시 불러옵니다. */}
|
||||
내전 기록이 확인되지 않을 경우 버튼을 눌러 갱신 (테스트)
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user