File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { useStompClient } from '~/app/provider/StompProvider';
55
66type TradeNotification = {
77 ticker : string ;
8- price : number ;
98 size : number ;
109 type : 'ask' | 'bid' ;
11- tradedTime : string ;
1210} ;
1311
1412export 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 ) ;
You can’t perform that action at this time.
0 commit comments