From 22fd89be20665ea1682809637b8a903cb660e051 Mon Sep 17 00:00:00 2001 From: anhnhu Date: Wed, 10 Jul 2024 16:50:06 +0700 Subject: [PATCH] Update leaderboard Vara --- .../src/Popup/Home/Leaderboard/index.tsx | 10 +++++----- packages/extension-koni-ui/src/connector/booka/sdk.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/extension-koni-ui/src/Popup/Home/Leaderboard/index.tsx b/packages/extension-koni-ui/src/Popup/Home/Leaderboard/index.tsx index e159ad36c9..8165e904ba 100644 --- a/packages/extension-koni-ui/src/Popup/Home/Leaderboard/index.tsx +++ b/packages/extension-koni-ui/src/Popup/Home/Leaderboard/index.tsx @@ -38,19 +38,19 @@ const Component = ({ className }: Props): React.ReactElement => { const [leaderBoard, setLeaderBoard] = useState(apiSDK.leaderBoard); const { t } = useTranslation(); const { setContainerClass } = useContext(HomeContext); - const [selectedTab, setSelectedTab] = useState(TabType.DED_PLAYDROP); + const [selectedTab, setSelectedTab] = useState(TabType.VARA_PLAYDROP); const [account, setAccount] = useState(apiSDK.account); const tabGroupItems = useMemo(() => { return [ - { - label: t('DED'), - value: TabType.DED_PLAYDROP - }, { label: t('VARA'), value: TabType.VARA_PLAYDROP }, + { + label: t('DED'), + value: TabType.DED_PLAYDROP + }, { label: t('Weekly'), value: TabType.WEEKLY diff --git a/packages/extension-koni-ui/src/connector/booka/sdk.ts b/packages/extension-koni-ui/src/connector/booka/sdk.ts index a11a4e36a5..ce55ec8787 100644 --- a/packages/extension-koni-ui/src/connector/booka/sdk.ts +++ b/packages/extension-koni-ui/src/connector/booka/sdk.ts @@ -444,7 +444,7 @@ export class BookaSdk { this.accountSubject.next(account); storage.setItem(CACHE_KEYS.account, JSON.stringify(account)).catch(console.error); this.syncHandler.resolve(); - const { end, start } = calculateStartAndEnd('weekly'); + const { end, start } = calculateStartAndEnd('vara_playdrop'); await Promise.all([ this.fetchEnergyConfig(),