Skip to content

Commit 939b173

Browse files
committed
refactor: username 관련 코드 수정
1 parent af8fad6 commit 939b173

File tree

1 file changed

+1
-1
lines changed
  • src/components/auth-required/main/Section

1 file changed

+1
-1
lines changed

src/components/auth-required/main/Section/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const Section = (p: PostType) => {
1818
if (!username) {
1919
throw new UserNameNotFound();
2020
}
21-
const url = `${process.env.NEXT_PUBLIC_VELOG_URL}/@${username || ''}/${p.slug}`;
21+
const url = `${process.env.NEXT_PUBLIC_VELOG_URL}/@${username}/${p.slug}`;
2222

2323
return (
2424
<section className="flex flex-col w-full h-fit relative">

0 commit comments

Comments
 (0)