Skip to content

Commit

Permalink
#12 Fix: 회원정보수정 페이지 issue 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Aug 14, 2023
1 parent e8099ac commit 3b16c75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/me/SettingBtns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export default function SettingBtns({ userId }: Props) {
return (
uid === Number(userId) && (
<div className="flex flex-col">
<Link href={`/me/setting/${userId}`} className="text-center">
<Link
href={`/me/setting/${userId}`}
prefetch={false}
className="text-center"
>
<button className="mt-8 text-soma-grey-50 text-sm">
회원 정보 수정
</button>
Expand Down
3 changes: 2 additions & 1 deletion src/service/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ export async function updateUserInfo(

export async function getUserInfo2(userId: number): Promise<UserInfo2> {
return fetch(
`${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS_SECURE}/users/profile/${userId}`
`${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS_SECURE}/users/profile/${userId}`,
{ next: { revalidate: 0 } }
)
.then((res) => {
if (!res.ok) throw new Error('error 발생!');
Expand Down

0 comments on commit 3b16c75

Please sign in to comment.