Skip to content

Commit

Permalink
[1.6.1] CPM_Arena Production (#45)
Browse files Browse the repository at this point in the history
[1.6.1] CPM_Arena Production
  • Loading branch information
GINK-SS authored Jul 20, 2024
2 parents f0fbeb7 + 0117429 commit d353e3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions public/storage/update.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"date": "2024.07.20",
"version": "1.6.0",
"version": "1.6.0 - 1.6.1",
"contents": [
{
"title": "최적화 진행",
Expand Down Expand Up @@ -39,7 +39,8 @@
"descriptions": [
"상세 정보 창이 나타날 때, 화면 스크롤 되는 문제가 수정됩니다.",
"고정된 선수가 존재할 때 선택 초기화를 하면 엔트리 활성화가 정상적으로 동작하지 않던 문제가 수정됩니다.",
"화면 높이가 작을 때 배경화면이 정상적으로 출력되지 않던 문제가 수정됩니다."
"화면 높이가 작을 때 배경화면이 정상적으로 출력되지 않던 문제가 수정됩니다.",
"모바일 화면에서 메뉴 버튼을 누르면 선택한 선수들이 초기화되던 문제가 수정됩니다."
]
}
]
Expand Down
8 changes: 7 additions & 1 deletion src/app/components/common/header/menu-filter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect } from 'react';
import { useEffect, useState } from 'react';
import { usePathname, useSearchParams } from 'next/navigation';
import { useRouter } from 'next-nprogress-bar';
import { useShallow } from 'zustand/react/shallow';
Expand All @@ -17,6 +17,7 @@ export default function MenuFilter() {
);
const setIsLoading = useCommonStore((state) => state.setIsLoading);
const clearBuff = useBuffStore((state) => state.clearBuff);
const [isMounted, setIsMounted] = useState(false);
const pathname = usePathname();
const searchParams = useSearchParams();
const limit = searchParams.get('limit');
Expand All @@ -30,6 +31,11 @@ export default function MenuFilter() {
};

useEffect(() => {
if (!isMounted) {
setIsMounted(true);
return;
}

setSelectedPlayer(null);
setPinnedPlayer(null);
clearLineup();
Expand Down

0 comments on commit d353e3a

Please sign in to comment.