your personal website on atproto - mirror blento.app

Merge pull request #171 from flo-bit/npmx

fix npmx leaderboard

authored by Florian and committed by GitHub f7f0d652 3be50603

+2 -2
+2 -2
src/lib/cards/social/NpmxLikesLeaderboardCard/NpmxLikesLeaderboardCard.svelte
··· 2 2 import type { Item } from '$lib/types'; 3 3 import { onMount } from 'svelte'; 4 4 import { getAdditionalUserData, getDidContext, getHandleContext } from '$lib/website/context'; 5 - import { CardDefinitionsByType } from '../..'; 5 + import { NpmxLikesLeaderboardCardDefinition } from '.'; 6 6 7 7 interface LeaderboardEntry { 8 8 subjectRef: string; ··· 27 27 onMount(async () => { 28 28 if (leaderboard) return; 29 29 30 - leaderboard = (await CardDefinitionsByType[item.cardType]?.loadData?.([], { 30 + leaderboard = (await NpmxLikesLeaderboardCardDefinition.loadData?.([], { 31 31 did, 32 32 handle 33 33 })) as LeaderboardData | undefined;