Skip to content

Commit

Permalink
remove leaderboard (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisontim authored Dec 27, 2024
1 parent de1e3eb commit 4fb9631
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ export class LeaderboardManager {
);

const epochEndTimestamp =
nextEpoch?.start_timestamp ?? season.is_over ? season.ended_at : BigInt(currentTimestamp);
season.is_over && nextEpoch === undefined
? season.ended_at
: nextEpoch?.start_timestamp ?? BigInt(currentTimestamp);
const epochDuration = epochEndTimestamp - epoch.start_timestamp;

const nbOfCycles = Number(epochDuration) / ClientConfigManager.instance().getTick(TickIds.Default);
Expand Down
11 changes: 1 addition & 10 deletions landing/src/routes/index.lazy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AnimatedGrid } from "@/components/modules/animated-grid";
import { DataCard, DataCardProps } from "@/components/modules/data-card";
import { Leaderboard } from "@/components/modules/leaderboard";
import {
PRIZE_POOL_ACHIEVEMENTS,
PRIZE_POOL_CONTENT_CREATORS,
Expand Down Expand Up @@ -35,7 +34,6 @@ interface GridItemType {
}

function Index() {

const { data, isLoading } = useQuery({
queryKey: ["eternumStatistics"],
queryFn: () => execute(GET_ETERNUM_STATTISTICS),
Expand Down Expand Up @@ -129,14 +127,7 @@ function Index() {
return (
<div className="p-4">
<AnimatedGrid
items={[
...dataCards,
{
colSpan: { sm: 2, md: 6, lg: 12 },
rowSpan: { sm: 1, md: 1, lg: 2 },
data: <Leaderboard />,
},
]}
items={[...dataCards]}
renderItem={(item) =>
React.isValidElement(item.data) ? item.data : <DataCard {...(item.data as DataCardProps)} />
}
Expand Down

0 comments on commit 4fb9631

Please sign in to comment.