Skip to content

Commit

Permalink
Merge pull request #134 from codestates-seb/dev-client#122/detailFix
Browse files Browse the repository at this point in the history
[Fix] 미체결 거래 체결전환 알림 관련 수정
  • Loading branch information
novice1993 authored Sep 19, 2023
2 parents 9e5e2df + 5f0c5a5 commit d32efe3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/src/components/StockOrderSection/WaitOrderIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ const WaitOrderIndicator = () => {

useEffect(() => {
if (waitOrderSuccessData) {
toast.info(`대기주문이 체결되었습니다`, {
style: toastStyle,
position: "bottom-left",
});
console.log(waitOrderSuccessData);

if (waitOrderSuccessData[0].length !== 0 && waitOrderSuccessData[1].length !== 0) {
toast.info(`대기주문이 체결되었습니다`, {
style: toastStyle,
position: "bottom-left",
});
}
}
}, [waitOrderSuccessData]);

Expand Down

0 comments on commit d32efe3

Please sign in to comment.