Skip to content

Commit 2b21c75

Browse files
committed
hotfix: 데이터 타입 맞춤
1 parent db02321 commit 2b21c75

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/components/auth-required/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ export const Header = () => {
8282
width={35}
8383
height={35}
8484
className="rounded-full"
85-
src={profiles?.user?.profile.thumbnail || '/profile.jpg'}
85+
src={profiles?.profile.thumbnail || '/profile.jpg'}
8686
alt=""
8787
/>
8888
<span className={textStyle('username')}>
89-
{profiles?.user?.username || 'NULL'}
89+
{profiles?.username || 'NULL'}
9090
</span>
9191
</div>
9292
{open && (

src/types/apis/user.type.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ export type LoginVo = {
44
};
55

66
export type UserDto = {
7-
user: {
8-
id: string;
9-
username: string;
10-
email: string;
11-
profile: {
12-
thumbnail: string;
13-
};
7+
id: string;
8+
username: string;
9+
email: string;
10+
profile: {
11+
thumbnail: string;
1412
};
1513
};

0 commit comments

Comments
 (0)