Skip to content

Commit

Permalink
Merge pull request #276 from MeeTeamIdle/release-1.0
Browse files Browse the repository at this point in the history
fix: 프로필 및 포트폴리오 관련 이슈 해결 배포 브랜치에 적용
  • Loading branch information
kimsuyeon0916 authored Nov 6, 2024
2 parents 5f8f7aa + 9b2dd18 commit fc41007
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 208 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const PortfolioImageUpload = ({
shouldDirty: true,
shouldTouch: true,
});
event.target.value = ''; // 같은 이름 파일 있을 때만 input value 초기화
};
continue;
}
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export const useCheckDuplicateNickname = (authKeys: string[], isEnabled: boolean
queryKey: authKeys,
queryFn: isEnabled => isEnabled && checkDuplicateNickname(authKeys[1]),
enabled: isEnabled,
staleTime: 1000,
});
};

Expand Down
1 change: 1 addition & 0 deletions src/hooks/usePortfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const useReadPortfolio = (portfolioId: string) => {
return useQuery({
queryKey: portfolioKeys.readPortfolio(portfolioId),
queryFn: () => readPortfolio(portfolioId),
enabled: !!portfolioId,
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/account/nicknameSetting/NicknameSettingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NicknameSettingPage = () => {

const nickname = useDebounce(watch('nickname'));
const authKeys = ['checkDuplicateNickname', nickname];
const { data } = useCheckDuplicateNickname(authKeys, isDirty && isValid);
const { data } = useCheckDuplicateNickname(authKeys, isDirty && isValid && !!nickname);

const [duplicateNicknameValidation, setDuplicateNicknameValidation] = useState('');
const [duplicated, setDuplicated] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import RecruitPostingApply from './recruit/recruitManagePage/RecruitPostingApply
import RecruitMyPostings from './recruit/recruitManagePage/RecruitMyPostings';
import CompleteSignUpPage from './account/complete/CompleteSignUpPage';
import PrivateRouter from './routes/PrivateRouter';
import PortfolioManagementPage from './portfolio/management/PortfolioManagmentPage';
import PortfolioManagementPage from './portfolio/management/PortfolioManagementPage';
import NotFound from './notFound/NotFound';
import AccountSetting from './account/accountSetting/AccountSetting';

Expand Down
Loading

0 comments on commit fc41007

Please sign in to comment.