Skip to content

Commit

Permalink
Merge branch 'feat/#36' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Leeseunghwan7305 committed Dec 11, 2023
2 parents ee668bc + bd39293 commit f862335
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/auction/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ export default function AuctionDetail({
}, [data]);

useEffect(() => {
if (comment && Array.isArray(comment) && Array.isArray(addCommnet)) {
setComment((pre: CommentType[]) => {
return [...pre, ...addCommnet];
});
if (comment && addCommnet) {
setComment([...comment, ...addCommnet]);
}
}, [addCommnet]);
}, [addCommnet, refetchScroll]);

if (isPending) {
return <Loading width="350" height="350" />;
Expand Down

0 comments on commit f862335

Please sign in to comment.