Skip to content

Commit

Permalink
style: 細かな変更
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Aug 30, 2024
1 parent faf5fe3 commit 774bbca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/team/Selecter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ export function TeamSelector(): ReactElement {
width: 100px;
`;

const initializeFunc = (): void => {
const initializeFunc = (): void => {
const { init: initAchievements } = useAchievements(useTeam);
const { init: initUnlockedAchievements } = useUnlockedAchievements(useTeam);

useEffect(() => {
void initAchievements();
void initUnlockedAchievements();
}, []);

navigate("/ranking");
};

return match(swrJoinedTeams)
Expand All @@ -46,7 +48,6 @@ export function TeamSelector(): ReactElement {
onClick={() => {
markTeamNameAsSelected(team.name);
initializeFunc();
navigate("/ranking");
}}
size="4"
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auth/callback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type ReactElement } from "react";
import useSWR from "swr";
import { match } from "ts-pattern";
import { Center } from "@/components/Center";
import { TeamSelector } from "@/components/team/selecter";
import { TeamSelector } from "@/components/team/Selecter";
import { S } from "@/lib/consts";
import { requestAccessTokenData } from "@/lib/services/esa";
import { $accessTokenData } from "@/lib/stores/auth";
Expand Down

0 comments on commit 774bbca

Please sign in to comment.