Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const LeaderboardPodium = ({ locale }: LeaderboardPodiumProps) => {
const secondRank = data?.data[1];
const thirdRank = data?.data[2];

const unknownIdentity = "-";
const isLoading = status === "loading";

return (
Expand All @@ -22,24 +21,24 @@ const LeaderboardPodium = ({ locale }: LeaderboardPodiumProps) => {

<WinnerPodium
rank={2}
identity={secondRank?.raider.referral_code ?? unknownIdentity}
impressions={secondRank?.total_impressions ?? 0}
identity={secondRank?.raider.referral_code}
impressions={secondRank?.total_impressions}
isLoading={isLoading}
t={t}
/>

<WinnerPodium
rank={1}
identity={firstRank?.raider.referral_code ?? unknownIdentity}
impressions={firstRank?.total_impressions ?? 0}
identity={firstRank?.raider.referral_code}
impressions={firstRank?.total_impressions}
isLoading={isLoading}
t={t}
/>

<WinnerPodium
rank={3}
identity={thirdRank?.raider.referral_code ?? unknownIdentity}
impressions={thirdRank?.total_impressions ?? 0}
identity={thirdRank?.raider.referral_code}
impressions={thirdRank?.total_impressions}
isLoading={isLoading}
t={t}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type { TranslationKey, TranslationParams } from "@/utils/i18n";

interface WinnerPodiumProps {
rank: 1 | 2 | 3;
identity: string;
impressions: number;
identity?: string;
impressions?: number;
isLoading: boolean;
t: (key: TranslationKey, params?: TranslationParams) => any;
}
Expand Down Expand Up @@ -59,7 +59,9 @@ const WinnerPodium = ({
{isLoading ? (
<Skeleton className="mt-3 h-6 w-full" />
) : (
<p className="font-large-body-bold mt-3 text-center">{identity}</p>
<p className="font-large-body-bold mt-3 text-center">
{identity ?? "-"}
</p>
)}

<div className="relative -z-[1] mt-4 w-full perspective-[100px]">
Expand All @@ -71,7 +73,7 @@ const WinnerPodium = ({
{isLoading ? (
<Skeleton className="me-2 h-4 w-52" />
) : (
`${impressions} ${t("quests.raid.leaderboard.impressions")}`
`${impressions ?? "-"} ${t("quests.raid.leaderboard.impressions")}`
)}
</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions website/src/i18n/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@
"raid": {
"info": {
"code": "QUEST #002",
"name_one": "KING",
"name_two": "OF THE",
"name_three": "RAIDER",
"name_one": "KÖNIG",
"name_two": "DES",
"name_three": "SHILL",
"description": "Ein Kampf um einen Preispool von 500 USDC und den ultimativen Titel: Der King of the Shill.",
"play_guide": {
"title": "Spielanleitung",
Expand Down
4 changes: 2 additions & 2 deletions website/src/i18n/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@
"info": {
"code": "QUEST #002",
"name_one": "REY",
"name_two": "DE LOS",
"name_three": "RAIDERS",
"name_two": "DEL",
"name_three": "SHILL",
"description": "Una batalla por un pozo de premios de 500 USDC y el título definitivo: El Rey del Shill.",
"play_guide": {
"title": "Cómo jugar",
Expand Down
6 changes: 3 additions & 3 deletions website/src/i18n/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@
"raid": {
"info": {
"code": "QUEST #002",
"name_one": "KING",
"name_two": "OF THE",
"name_three": "RAIDER",
"name_one": "शिल",
"name_two": "का",
"name_three": "राजा",
"description": "500 USDC के प्राइज़ पूल और सर्वश्रेष्ठ खिताब `द किंग ऑफ द शिल` के लिए एक महायुद्ध।",
"play_guide": {
"title": "कैसे खेलें",
Expand Down
2 changes: 1 addition & 1 deletion website/src/i18n/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"code": "QUEST #002",
"name_one": "RAJA",
"name_two": "DARI",
"name_three": "RAIDER",
"name_three": "SHILL",
"description": "Pertempuran memperebutkan total hadiah 500 USDC dan gelar pamungkas: The King of the Shill.",
"play_guide": {
"title": "Cara Bermain",
Expand Down
6 changes: 3 additions & 3 deletions website/src/i18n/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@
"raid": {
"info": {
"code": "QUEST #002",
"name_one": "KING",
"name_two": "OF THE",
"name_three": "RAIDER",
"name_one": "キング",
"name_two": "オブ",
"name_three": "ザ・シル",
"description": "賞金総額 500 USDC と究極の称号「キング・オブ・シル」をかけた戦い。",
"play_guide": {
"title": "遊び方",
Expand Down
4 changes: 2 additions & 2 deletions website/src/i18n/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@
"raid": {
"info": {
"code": "QUEST #002",
"name_one": "레이드",
"name_two": "",
"name_one": "홍보의",
"name_two": "",
"name_three": "왕",
"description": "500 USDC 상금과 최고의 칭호 ‘킹 오브 더 쉴(King of the Shill)’을 차지하기 위한 전투.",
"play_guide": {
Expand Down
2 changes: 1 addition & 1 deletion website/src/i18n/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"code": "QUEST #002",
"name_one": "КОРОЛЬ",
"name_two": "",
"name_three": "РЕЙДЕРОВ",
"name_three": "ШИЛЛА",
"description": "Битва за призовой фонд в 500 USDC и главный титул: Король Шилла.",
"play_guide": {
"title": "Как играть",
Expand Down
2 changes: 1 addition & 1 deletion website/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"raid": {
"info": {
"code": "QUEST #002",
"name_one": "突袭",
"name_one": "宣传",
"name_two": "之",
"name_three": "王",
"description": "一场为了 500 USDC 奖池及终极头衔“Shill 之王”而展开的对决。",
Expand Down
Loading