Skip to content

Commit

Permalink
fix: 🐛 fix(#192): 맞춤 매칭 선택시 '칼바람' 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
ohofront committed Feb 24, 2025
1 parent 7de9305 commit 331d2ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/match/game-mode/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ const GameModePage = () => {
const [displayedData, setDisplayedData] = useState(GAME_MODE_PAGE_DATA);
const searchParams = useSearchParams();
const params = searchParams.get("type");

// "custom"일 때 "칼바람" 제외
const filteredData = GAME_MODE_PAGE_DATA.filter(
(box) => !(params === "custom" && box.title === "칼바람")
);
return (
<Wrapper>
<MatchContent>
<HeaderTitle title="게임모드 선택" />
<Main>
{displayedData.map((box) => {
{filteredData.map((box) => {
return (
<BoxWrapper key={box.id}>
<GraphicBox
Expand All @@ -29,7 +32,7 @@ const GameModePage = () => {
height={box.height}
top={box.top}
left={box.left}
background={""}
backgroundColor="#2E3032"
>
{box.title}
</GraphicBox>
Expand Down

0 comments on commit 331d2ef

Please sign in to comment.