Skip to content

Commit f4a24f0

Browse files
committed
fix: 서버 구현 변경에 따른 토스트 메시지 형식 수정
1 parent e273f4a commit f4a24f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/features/trade/hooks/useTradeNotification.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { useStompClient } from '~/app/provider/StompProvider';
55

66
type TradeNotification = {
77
ticker: string;
8-
price: number;
98
size: number;
109
type: 'ask' | 'bid';
11-
tradedTime: string;
1210
};
1311

1412
export default function useTradeNotification(userId: number) {
@@ -22,7 +20,7 @@ export default function useTradeNotification(userId: number) {
2220
(message) => {
2321
const parsedData = JSON.parse(message.body) as TradeNotification;
2422
const tradeType = parsedData.type === 'ask' ? '매도' : '매수';
25-
const toastMessage = `${parsedData.ticker} ${tradeType} 체결 완료 - 가격: ${parsedData.price}, 수량: ${parsedData.size}`;
23+
const toastMessage = `${parsedData.ticker} ${tradeType} 체결 완료 - 수량: ${parsedData.size}`;
2624
toast.success(toastMessage);
2725
},
2826
);

0 commit comments

Comments
 (0)