@@ -108,9 +108,6 @@ const OthersProfilePage = () => {
108108 src = "/assets/basic_profile.png"
109109 alt = "기본 프로필"
110110 className = "w-[40px] h-[40px] rounded-full bg-white object-cover scale-110"
111- onError = { ( e ) => {
112- e . currentTarget . src = "/assets/basic_profile.png" ;
113- } }
114111 />
115112 ) }
116113 < p className = "text-[18px] font-semibold text-[#2C2C2C]" >
@@ -158,19 +155,22 @@ const OthersProfilePage = () => {
158155 className = "flex bg-white rounded-[12px] border border-[#EAE5E2] p-6 transition-transform duration-300 transform hover:shadow-lg hover:scale-103 cursor-pointer"
159156 onClick = { ( ) => navigate ( `/bookstory/${ book . bookStoryId } /detail` ) }
160157 >
161- { /* 책 이미지 */ }
158+ { /* 책 이미지 (기본 이미지 적용) */ }
162159 { book . bookInfo ?. imgUrl ? (
163160 < img
164161 src = { book . bookInfo . imgUrl }
165162 alt = { book . bookInfo . title }
166163 className = "w-[176px] h-[248px] rounded-[16px] object-cover flex-shrink-0"
167164 onError = { ( e ) => {
168- e . currentTarget . src = "" ;
169- e . currentTarget . style . display = "none" ;
165+ e . currentTarget . src = "/assets/basic_book_image.png" ; // 기본 책 이미지
170166 } }
171167 />
172168 ) : (
173- < div className = "w-[176px] h-[248px] bg-[#E0E0E0] rounded-[16px] flex-shrink-0" />
169+ < img
170+ src = "/assets/basic_book_image.png"
171+ alt = "기본 책 이미지"
172+ className = "w-[176px] h-[248px] rounded-[16px] object-cover flex-shrink-0"
173+ />
174174 ) }
175175
176176 < div className = "flex flex-col justify-between ml-6 w-full" >
@@ -190,9 +190,6 @@ const OthersProfilePage = () => {
190190 src = "/assets/basic_profile.png"
191191 alt = "기본 프로필"
192192 className = "w-[24px] h-[24px] rounded-full bg-white object-cover scale-110"
193- onError = { ( e ) => {
194- e . currentTarget . src = "/assets/basic_profile.png" ;
195- } }
196193 />
197194 ) }
198195 < p className = "text-[14px] text-[#8D8D8D]" >
@@ -294,4 +291,4 @@ const OthersProfilePage = () => {
294291 ) ;
295292} ;
296293
297- export default OthersProfilePage ;
294+ export default OthersProfilePage ;
0 commit comments