Skip to content

Commit

Permalink
Update leaderboard Vara
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed Jul 10, 2024
1 parent 029b03e commit 22fd89b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/extension-koni-ui/src/Popup/Home/Leaderboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ const Component = ({ className }: Props): React.ReactElement => {
const [leaderBoard, setLeaderBoard] = useState<LeaderboardPerson[]>(apiSDK.leaderBoard);
const { t } = useTranslation();
const { setContainerClass } = useContext(HomeContext);
const [selectedTab, setSelectedTab] = useState<string>(TabType.DED_PLAYDROP);
const [selectedTab, setSelectedTab] = useState<string>(TabType.VARA_PLAYDROP);
const [account, setAccount] = useState(apiSDK.account);

const tabGroupItems = useMemo<TabGroupItemType[]>(() => {
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
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-koni-ui/src/connector/booka/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 22fd89b

Please sign in to comment.