diff --git a/src/components/element/leaderboard/LeaderboardLibrary.tsx b/src/components/element/leaderboard/LeaderboardLibrary.tsx index 9297190..cca2909 100644 --- a/src/components/element/leaderboard/LeaderboardLibrary.tsx +++ b/src/components/element/leaderboard/LeaderboardLibrary.tsx @@ -33,7 +33,7 @@ export default function LeaderboardLibrary(props: LeaderboardLibraryProps) { key={uuidv4()} total={BigInt(total ?? 0n)} row={row} - reason={reason} + showreason={reason} rank={index + 1 + Math.max(Number(page) - 1, 0) * Number(items)} token={token} chain={chain} diff --git a/src/components/element/leaderboard/LeaderboardTableRow.tsx b/src/components/element/leaderboard/LeaderboardTableRow.tsx index c9b498a..ec670bd 100644 --- a/src/components/element/leaderboard/LeaderboardTableRow.tsx +++ b/src/components/element/leaderboard/LeaderboardTableRow.tsx @@ -13,11 +13,11 @@ export type LeaderboardTableRowProps = Component<{ rank: number; token: TokenType; chain: number; - reason: boolean; + showreason: boolean; }>; export default function LeaderboardTableRow({ row, rank, total, className, ...props }: LeaderboardTableRowProps) { - const { token, chain: chainId, reason } = props; + const { token, chain: chainId, showreason } = props; const { chains } = useWalletContext(); const share = useMemo(() => { @@ -31,7 +31,7 @@ export default function LeaderboardTableRow({ row, rank, total, className, ...pr return chains?.find(c => c.id === chainId); }, [chains, chainId]); - return reason ? ( + return showreason ? ( +