feat: show tier history in auction spotlight

This commit is contained in:
dahyeon committed 2026-06-08 00:34:04 -07:00
1 parent de8bc87940
commit ebca348723
8 files changed
+160 -3

No files matched your search

+2 -1
View File
@@ -225,6 +225,7 @@ function createUserHistoryPath(
export function useUserHistoryProfile(
userId: string | undefined,
communityId = DEFAULT_COMMUNITY_ID,
enabled = true,
) {
return useQuery({
queryKey: ['user-history-profile', communityId, userId ?? null],
@@ -233,7 +234,7 @@ export function useUserHistoryProfile(
`/communities/${communityId}/users/${userId}/history-profile`,
{ auth: 'none' },
),
enabled: Boolean(communityId && userId),
enabled: enabled && Boolean(communityId && userId),
retry: false,
});
}