File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ const Contents = () => {
2727 enabled : isAuthenticated ,
2828 } ) ;
2929
30- return isAuthenticated ? (
30+ const hasProfile = isAuthenticated && userData ?. job ?. jobGroupName ;
31+
32+ return hasProfile ? (
3133 < BookArchiveForAuth userJobGroup = { userData . job . jobGroupName } />
3234 ) : (
3335 < BookArchiveForUnAuth />
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const BookArchiveForAuth = ({
3737 return (
3838 < div className = "flex w-full flex-col gap-[1.5rem] font-body1-bold" >
3939 < h2 > 👀 이런 책들이 많이 꽂혔어요</ h2 >
40- < ul className = "flex gap-[1.5rem] overflow-auto pb-[1.5rem]" >
40+ < ul className = "flex w-[calc(100%+2rem)] gap-[1.5rem] overflow-auto pb-[1.5rem]" >
4141 { booksData . books . map ( ( { bookId, imageUrl, title } ) => (
4242 < li key = { bookId } className = "max-w-[9rem]" >
4343 < Link href = { `/book/${ bookId } ` } className = "flex flex-col gap-[1rem]" >
You can’t perform that action at this time.
0 commit comments