Skip to content

Commit

Permalink
🔧 fix: 주문 요청 취소 누를 시 해당 종목으로 navigate 되는 거 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 4, 2024
1 parent 6c25592 commit 928b29c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FE/src/components/Mypage/Order.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default function Order() {
<li
className='flex py-2 transition-colors hover:cursor-pointer hover:bg-gray-50'
key={id}
onClick={() => handleClick(stock_code)}
onClick={(e) => {
if ((e.target as HTMLElement).closest('button')) return;
handleClick(stock_code);
}}
>
<div className='flex w-1/3 gap-2 text-left truncate'>
<p className='font-semibold'>{stock_name}</p>
Expand Down

0 comments on commit 928b29c

Please sign in to comment.