Skip to content

Commit

Permalink
fix: 하드코딩 값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Mar 7, 2025
1 parent 640fec0 commit 96e3cef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/apis/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { IProjectDetail, UploadData } from '@@types/request';
// }

export async function postGalleryData(data: FormData) {
const result = await axios.post(`${process.env.NEXT_PUBLIC_API_KEY}/api/project`, data);
const result = await axios.post(`${process.env.NEXT_PUBLIC_API_KEY}/api/project`, data, {
withCredentials: true,
});
return result;
}
2 changes: 1 addition & 1 deletion src/components/mypage/TotalScoreSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const TotalScoreSection = ({ myName }: { myName: string }) => {
const [sortScoreArray, setSortScoreArray] = useState<UserScore[]>([]);

useEffect(() => {
if (myName === '최재영' || myName === '박재윤') {
if (myName === '박연우' || myName === '조하정') {
setIsPre(true);
}
}, [myName]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/mypage/component/ScoreHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ScoreHeader = ({ isAdmin, name }: UserProps) => {
const [isPre, setIsPre] = useState<boolean>(false);

useEffect(() => {
if (name === '최재영' || name === '박재윤') {
if (name === '박연우' || name === '조하정') {
setIsPre(true);
}
}, [name]);
Expand Down

0 comments on commit 96e3cef

Please sign in to comment.